// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; TaskScheduler.UnobservedTaskException += TaskSchedulerOnUnobservedTaskException; ApplicationBootstrapper.InitializeIfNeeds <CIC_EPXamarinIosModule>(); global::Xamarin.Forms.Forms.Init(); ImageCircleRenderer.Init(); CachedImageRenderer.Init(); DebugServerIpAddresses.Current = "localhost"; //Set this address as your local computer IP. Eg: 192.168.1.120 ConfigureFlurlHttp(); #if DEBUG TrustLocalDeveloperCert(); #endif SetExitAction(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.Window.RequestFeature(WindowFeatures.ActionBar); // Name of the MainActivity theme you had there before. // Or you can use global::Android.Resource.Style.ThemeHoloLight base.SetTheme(Resource.Style.MainTheme); base.OnCreate(bundle); AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; TaskScheduler.UnobservedTaskException += TaskSchedulerOnUnobservedTaskException; global::Xamarin.Forms.Forms.Init(this, bundle); ImageCircleRenderer.Init(); CachedImageRenderer.Init(enableFastRenderer: true); Plugin.Iconize.Iconize.Init(Resource.Id.toolbar, Resource.Id.tabMode); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Forms.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(this, bundle); CachedImageRenderer.Init(false); LoadApplication(new App(new AndroidInitializer())); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; TaskScheduler.UnobservedTaskException += TaskSchedulerOnUnobservedTaskException; ApplicationBootstrapper.InitializeIfNeeds <AutumnXamarinIosModule>(); global::Xamarin.Forms.Forms.Init(); ImageCircleRenderer.Init(); CachedImageRenderer.Init(); ConfigureFlurlHttp(); SetExitAction(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }