Example #1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            UISynchronizationContext.Current = SynchronizationContext.Current;

            _settings = AppSettingsUtil.LoadSettings();

            InitializeVersion();
            InitializeUserDefaults();

#if ADHOC || APPSTORE
            InitializeGAI();
#else
            AnalyticsService.IsOptOut = true;
#endif

            AppSettingsUtil.HandleResetCache(_settings);

            Theme.Apply();

            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            var setup = new Setup(this, Window, _settings, _version);
            setup.Initialize();

            var startup = Mvx.Resolve <IMvxAppStart>();
            startup.Start();

            NavBarManager.Instance.SetNativeHidden(true, false);
            NavBarManager.Instance.SetHidden(false, false);

            Window.MakeKeyAndVisible();

            Mvx.Resolve <ICloudService>();

            return(true);
        }