Ejemplo n.º 1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            PlatformServices.Init();

            // Code for starting up the Xamarin Test Cloud Agent
                        #if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
                        #endif

            PlatformServices.UpdateVersionPreference();

                        #if DEBUG
            (null as IOnlineContextConfiguration).HttpClient(() => {
                var handler         = new HttpMessageHandlerWrapper();
                handler.RequestLog += Console.WriteLine;
                return(new HttpClient(handler));
            });
                        #endif

            LoadApplication(new App());

            app.SetStatusBarHidden(false, false);

            return(base.FinishedLaunching(app, options));
        }