Esempio n. 1
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;

            Forms.Init();

            SfListViewRenderer.Init();
            new SfBusyIndicatorRenderer();
            SfScheduleRenderer.Init();
            Xamarin.FormsMaps.Init();
            ImageCircleRenderer.Init();

            BootstrapperService.Initialize(new IociOSModule()).GetAwaiter();

            LoadApplication(new App());

            // make the window visible
            //Window.MakeKeyAndVisible();

            return(base.FinishedLaunching(application, launchOptions));
        }
Esempio n. 2
0
        // Simulates background work that happens behind the splash screen
        private async void SimulateStartup()
        {
            Log.Debug(TAG, "Performing some startup work that takes a bit of time.");
            await BootstrapperService.Initialize(new IocAndroidModule());

            Log.Debug(TAG, "Startup work is finished - starting MainActivity.");
            StartActivity(new Intent(Application.Context, typeof(MainActivity)));
        }
Esempio n. 3
0
        private async Task InitializeAsync()
        {
            await BootstrapperService.Initialize(new IocWindowsModule());

            GeolocationAccessStatus accessStatus = await Geolocator.RequestAccessAsync();

            //TODO: should store in settings
            var locationService = CC.IoC.Resolve <ILocationService>();

            locationService.HasGpsPermissions = accessStatus == GeolocationAccessStatus.Allowed;

            DismissExtendedSplash();
        }