// // 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) { global::Xamarin.Forms.Forms.Init(); XF.Material.iOS.Material.Init(); var provider = new iOSBluetoothPacketProvider(); LoadApplication(new App(provider, Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "..", "Library"))); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { var provider = RootWorkItem.Services.Get <IBluetoothPacketProvider>(); if (provider == null) { provider = new iOSBluetoothPacketProvider(); RootWorkItem.Services.Add <IBluetoothPacketProvider>(provider); } global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }