Пример #1
0
 /// <summary>
 /// Resolves the services.
 /// </summary>
 void ResolveServices()
 {
     _UserDialogService             = DependencyService.Get <IUserDialogService>();
     _VersionRetrievalService       = DependencyService.Get <IVersionRetrievalService>();
     _UberService                   = DependencyService.Get <IUberService>();
     _LyftService                   = DependencyService.Get <ILyftService>();
     _NotificationNavigationService = DependencyService.Get <INotificationNavigationService>();
 }
Пример #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
#if !DEBUG
            AppCenter.Start(Settings.AppCenteriOSKey, typeof(Analytics), typeof(Crashes));
#endif

            //#if ENABLE_TEST_CLOUD
            //				Xamarin.Calabash.Start();
            //#endif

            Forms.Init();

            CarouselViewRenderer.Init();

            CachedImageRenderer.Init();

            LoadApplication(new App());

            RegisterForNotifications();

            _NotificationNavigationService = DependencyService.Get <INotificationNavigationService>();

            return(base.FinishedLaunching(app, options));
        }
Пример #3
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

#if !DEBUG
            AppCenter.Start(Settings.AppCenterAndroidKey, typeof(Analytics), typeof(Crashes));
            //Pyze.Initialize(this);
#endif

            UserDialogs.Init(this);

            Forms.Init(this, bundle);

            _NotificationNavigationService = DependencyService.Get <INotificationNavigationService>();

            CachedImageRenderer.Init(true);

            CarouselViewRenderer.Init();

            LoadApplication(new App());
        }