public MvxImagePickerTask(IMvxTouchViewPresenter presenter)
 {
     _picker = new UIImagePickerController();
     //_cameraDelegate = new CameraDelegate();
     // _picker.Delegate = _cameraDelegate;
     _presenter = presenter;
 }
Пример #2
0
        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);
        }
Пример #3
0
 public MvxImagePickerTask(IMvxTouchViewPresenter presenter)
 {
     _picker = new UIImagePickerController();
     //_cameraDelegate = new CameraDelegate();
     // _picker.Delegate = _cameraDelegate;
     _presenter = presenter;
 }
Пример #4
0
        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();
		}
Пример #6
0
 public Setup(MvxApplicationDelegate deleg, IMvxTouchViewPresenter presenter)
     : base(deleg, presenter)
 {
 }
Пример #7
0
 protected MvxTouchDialogSetup(MvxApplicationDelegate applicationDelegate,
                               IMvxTouchViewPresenter presenter)
     : base(applicationDelegate, presenter)
 {
 }
Пример #8
0
 public MvxComposeEmailTask (IMvxTouchViewPresenter presenter)
 {
     _presenter = presenter;
 }
Пример #9
0
 public MvxComposeEmailTask()
 {
     _presenter = this.GetService<IMvxTouchViewPresenter>();
 }
Пример #10
0
 public MvxImagePickerTask()
 {
     _presenter = this.GetService<IMvxTouchViewPresenter>();
     _picker = new UIImagePickerController();
 }
Пример #11
0
		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));
        }
Пример #12
0
        public MvxShareTask()
        {
			_presenter = this.GetService<IMvxTouchViewPresenter>();
		}
 public ConditionalTouchDispatcher(IMvxTouchViewPresenter presenter) : base()
 {
     _presenter = presenter;
 }
 protected MvxBaseTouchBindingSetup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter)
     : base(applicationDelegate, presenter)
 {
 }
Пример #15
0
 public MessageService(IMvxTouchViewPresenter viewPresenter)
 {
     _viewPresenter = viewPresenter;
 }
Пример #16
0
        public MvxTouchViewsContainer(IMvxTouchViewPresenter presenter)
        {
			_presenter = presenter;
        }
Пример #17
0
 public MvxTouchViewDispatcher(IMvxTouchViewPresenter presenter)
 {
     _presenter = presenter;
 }
Пример #18
0
 protected MvxTouchSetup(IMvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter)
 {
     _presenter           = presenter;
     _applicationDelegate = applicationDelegate;
 }
Пример #19
0
 public MvxShareTask(IMvxTouchViewPresenter presenter)
 {
     _presenter = presenter;
 }
Пример #20
0
 protected MvxTouchSetup(IMvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter)
 {
     _presenter = presenter;
     _applicationDelegate = applicationDelegate;
 }
 public ConditionalTouchDispatcher(IMvxTouchViewPresenter presenter)
     : base()
 {
     _presenter = presenter;
 }
Пример #22
0
 public MvxTouchViewDispatcherProvider(IMvxTouchViewPresenter presenter)
 {
     _presenter = presenter;
 }
Пример #23
0
 public MvxComposeEmailTask(IMvxTouchViewPresenter presenter)
 {
     _presenter = presenter;
 }
Пример #24
0
 public Setup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter)
     : base(applicationDelegate, presenter)
 {
 }
Пример #25
0
 public MvxShareTask (IMvxTouchViewPresenter presenter)
 {
     _presenter = presenter;
 }
Пример #26
0
 protected MvxTouchDialogBindingSetup(MvxApplicationDelegate applicationDelegate,
                                      IMvxTouchViewPresenter presenter)
     : base(applicationDelegate, presenter)
 {
 }
Пример #27
0
 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));
 }
Пример #28
0
 public Setup(MvxApplicationDelegate appDelegate, IMvxTouchViewPresenter presenter)
     : base(appDelegate, presenter)
 {
 }
Пример #29
0
 public Setup(MvxApplicationDelegate applicationDelegate, IMvxTouchViewPresenter presenter) //, UIWindow window)
     : base(applicationDelegate, presenter)                                                 //, window)
 {
 }