public MvxImagePickerTask(IMvxTouchViewPresenter presenter) { _picker = new UIImagePickerController(); //_cameraDelegate = new CameraDelegate(); // _picker.Delegate = _cameraDelegate; _presenter = presenter; }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // create a new window instance based on the screen size Window = new UIWindow(UIScreen.MainScreen.Bounds); // If you have defined a root view controller, set it here: // Window.RootViewController = myViewController; Stripe.StripeClient.DefaultPublishableKey = AppConstants.StripeAPIKey; MapServices.ProvideAPIKey("AIzaSyAiBwRUm_KZDv_sp3eI7F8hxkePqDTvY20"); presenter = IsPad ? (IMvxTouchViewPresenter) new PadPresenter(this, Window) : (IMvxTouchViewPresenter) new PhonePresenter(this, Window); var setup = new Setup(this, presenter); setup.Initialize(); //get last used language var language = NSUserDefaults.StandardUserDefaults.StringForKey(AppConstants.Language); if (string.IsNullOrEmpty(language)) { Mvx.Resolve <IMvxTextProviderBuilder>().LoadResources(string.Empty); } else { Mvx.Resolve <IMvxTextProviderBuilder>().LoadResources(language); } var startup = Mvx.Resolve <IMvxAppStart>(); startup.Start(); // make the window visible Window.MakeKeyAndVisible(); //customize navigation bar UINavigationBar.Appearance.BarTintColor = UIColor.FromRGB(35, 137, 203); UINavigationBar.Appearance.TintColor = UIColor.White; UINavigationBar.Appearance.TitleTextAttributes = new UIStringAttributes(new NSDictionary(UIStringAttributeKey.ForegroundColor, UIColor.White)); UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false); //customize tab bar var textAttributes = new UITextAttributes(); textAttributes.Font = UIFont.FromName("HelveticaNeue-Bold", 17f); textAttributes.Font = FontHelper.AdjustFontSize(textAttributes.Font); UITabBarItem.Appearance.SetTitleTextAttributes(textAttributes, UIControlState.Normal); //initialize Crittercism #if DEBUG #else Crittercism.Init("55fcbf338d4d8c0a00d07a12"); #endif return(true); }
public MvxImagePickerTask(IMvxTouchViewPresenter presenter) { _picker = new UIImagePickerController(); //_cameraDelegate = new CameraDelegate(); // _picker.Delegate = _cameraDelegate; _presenter = presenter; }
public Setup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) : base(applicationDelegate, presenter) { // set up the iOS Application Api Key AnalyticsApi.ApiKey = "PQSZJRK4B5BW8Q7YQQXF"; // Starting and ending the sessions specifically for iOS AnalyticsApi.StartSession(); }
public Setup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) : base(applicationDelegate, presenter) { // set up the iOS Application Api Key AnalyticsApi.ApiKey = "PQSZJRK4B5BW8Q7YQQXF"; // Starting and ending the sessions specifically for iOS AnalyticsApi.StartSession(); }
public Setup(MvxApplicationDelegate deleg, IMvxTouchViewPresenter presenter) : base(deleg, presenter) { }
protected MvxTouchDialogSetup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) : base(applicationDelegate, presenter) { }
public MvxComposeEmailTask (IMvxTouchViewPresenter presenter) { _presenter = presenter; }
public MvxComposeEmailTask() { _presenter = this.GetService<IMvxTouchViewPresenter>(); }
public MvxImagePickerTask() { _presenter = this.GetService<IMvxTouchViewPresenter>(); _picker = new UIImagePickerController(); }
public void SetupAdditionalPlatformTypes(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) { if (applicationDelegate == null) { MvxTrace.Trace(MvxTraceLevel.Warning, "SetupAdditionalPlatformTypes passed null delegate - so platform types will not be initialized"); return; } RegisterServiceInstance<IMvxLifetime>(applicationDelegate); RegisterServiceInstance<IMvxPictureChooserTask>(new MvxImagePickerTask(presenter)); }
public MvxShareTask() { _presenter = this.GetService<IMvxTouchViewPresenter>(); }
public ConditionalTouchDispatcher(IMvxTouchViewPresenter presenter) : base() { _presenter = presenter; }
protected MvxBaseTouchBindingSetup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) : base(applicationDelegate, presenter) { }
public MessageService(IMvxTouchViewPresenter viewPresenter) { _viewPresenter = viewPresenter; }
public MvxTouchViewsContainer(IMvxTouchViewPresenter presenter) { _presenter = presenter; }
public MvxTouchViewDispatcher(IMvxTouchViewPresenter presenter) { _presenter = presenter; }
protected MvxTouchSetup(IMvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) { _presenter = presenter; _applicationDelegate = applicationDelegate; }
public MvxShareTask(IMvxTouchViewPresenter presenter) { _presenter = presenter; }
protected MvxTouchSetup(IMvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) { _presenter = presenter; _applicationDelegate = applicationDelegate; }
public ConditionalTouchDispatcher(IMvxTouchViewPresenter presenter) : base() { _presenter = presenter; }
public MvxTouchViewDispatcherProvider(IMvxTouchViewPresenter presenter) { _presenter = presenter; }
public MvxComposeEmailTask(IMvxTouchViewPresenter presenter) { _presenter = presenter; }
public Setup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) : base(applicationDelegate, presenter) { }
public MvxShareTask (IMvxTouchViewPresenter presenter) { _presenter = presenter; }
protected MvxTouchDialogBindingSetup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) : base(applicationDelegate, presenter) { }
public void SetupAdditionalPlatformTypes(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) { if (applicationDelegate == null) { MvxTrace.Trace(MvxTraceLevel.Warning, "SetupAdditionalPlatformTypes passed null delegate - so platform types will not be initialized"); return; } RegisterServiceInstance <IMvxLifetime>(applicationDelegate); RegisterServiceInstance <IMvxComposeEmailTask>(new MvxComposeEmailTask(presenter)); RegisterServiceInstance <IMvxPictureChooserTask>(new MvxImagePickerTask(presenter)); RegisterServiceInstance <IMvxShareTask>(new MvxShareTask(presenter)); }
public Setup(MvxApplicationDelegate appDelegate, IMvxTouchViewPresenter presenter) : base(appDelegate, presenter) { }
public Setup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) //, UIWindow window) : base(applicationDelegate, presenter) //, window) { }