/// <summary> /// Finished the launching. /// </summary> /// <param name="app">The application.</param> /// <param name="options">The options.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> /// <remarks> /// 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. /// </remarks> public override bool FinishedLaunching(UIApplication app, NSDictionary options) { this.SetIoc(); //new CalendarViewRenderer(); //added so the assembly is included HybridWebViewRenderer.CopyBundleDirectory("HTML"); Forms.Init(); var formsApp = new App(); LoadApplication(formsApp); // this._window = new UIWindow(UIScreen.MainScreen.Bounds) // { // RootViewController = App.GetMainPage().CreateViewController() // }; Forms.ViewInitialized += (sender, e) => { if (!string.IsNullOrWhiteSpace(e.View.StyleId)) { e.NativeView.AccessibilityIdentifier = e.View.StyleId; } }; base.FinishedLaunching(app, options); return(true); }
// // 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) { HybridWebViewRenderer.CopyBundleDirectory("www"); Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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) { SetIoC(); HybridWebViewRenderer.CopyBundleDirectory("HTML"); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); var file = Resolver.Resolve <IFilePath>().GetFilePath(); Debug.WriteLine("call from OnAppearing: " + file + "/" + "index.html"); return(base.FinishedLaunching(app, options)); }
// // 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) { this.SetIoc(); HybridWebViewRenderer.CopyBundleDirectory("HTML"); global::Xamarin.Forms.Forms.Init(); LoadApplication(new XLabs.Samples.App()); Xamarin.Forms.Forms.ViewInitialized += (sender, e) => { if (!string.IsNullOrWhiteSpace(e.View.StyleId)) { e.NativeView.AccessibilityIdentifier = e.View.StyleId; } }; return(base.FinishedLaunching(app, options)); }
// // 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) { HybridWebViewRenderer.CopyBundleDirectory("HTML"); if (!Resolver.IsSet) { var container = new SimpleContainer(); container.Register <IDevice>(t => AppleDevice.CurrentDevice); container.Register <IDisplay>(t => t.Resolve <IDevice>().Display); container.Register <INetwork>(t => t.Resolve <IDevice>().Network); Resolver.SetResolver(container.GetResolver()); } global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }