// // 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(); //UIApplication.CheckForIllegalCrossThreadCalls = false; // Add FFLoadingImage CachedImageRenderer.Init(); var config = new FFImageLoading.Config.Configuration() { VerboseLogging = false, VerbosePerformanceLogging = false, VerboseMemoryCacheLogging = false, VerboseLoadingCancelledLogging = false, Logger = new CustomLogger(), }; ImageService.Instance.Initialize(config); FloatingActionButtonRenderer.InitRenderer(); new Syncfusion.SfAutoComplete.XForms.iOS.SfAutoCompleteRenderer(); new Syncfusion.XForms.iOS.ComboBox.SfComboBoxRenderer(); new SfNumericTextBoxRenderer(); Syncfusion.ListView.XForms.iOS.SfListViewRenderer.Init(); SfTextInputLayoutRenderer.Init(); SfButtonRenderer.Init(); Rg.Plugins.Popup.Popup.Init(); Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init(); Xamarin.FormsGoogleMaps.Init(EnvironmentConf.GoogleMapsApiKey); LoadApplication(new App()); SfRadioButtonRenderer.Init(); SfRadialMenuRenderer.Init(); Syncfusion.XForms.iOS.PopupLayout.SfPopupLayoutRenderer.Init(); CrossFirebasePushNotification.Current.Subscribe("Products"); FirebasePushNotificationManager.Initialize(options, true); return(base.FinishedLaunching(app, options)); }
public override bool OpenUrl(UIApplication application, NSUrl receivedurl, string sourceApplication, NSObject annotation) { AsNumAssemblyHelper.HoldAssembly(); global::Xamarin.Forms.Forms.Init(); FloatingActionButtonRenderer.InitRenderer(); OxyPlot.Xamarin.Forms.Platform.iOS.PlotViewRenderer.Init(); DependencyService.Register <ToastNotification>(); Plugin.Toasts.ToastNotification.Init(); //global::Xamarin.FormsMaps.Init(); FormsPlugin.Iconize.iOS.IconControls.Init(); var dummy = new FFImageLoading.Forms.Touch.CachedImageRenderer(); FFImageLoading.Forms.Touch.CachedImageRenderer.Init(); FormsPlugin.Iconize.iOS.IconControls.Init(); Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.IoniconsModule()); ShapeRenderer.Init(); ImageCircleRenderer.Init(); string url = receivedurl.ToString(); //string[] values = Intent.DataString.ToString().Split('/'); // string inttype = values[values.Length - 1]; string integrationtype = url.Trim().Contains("google_fit") ? "2" : "1"; string integration = url.Substring(url.IndexOf("code=") + 4 + 1); //LoadApplication(new App(integrationtype, integration)); LoadApplication(new App(integrationtype, integration)); /* now store the url somewhere in the app’s context. The url is in the url NSUrl object. The data is in url.Host if the link as a scheme as superduperapp://something_interesting */ 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) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); FloatingActionButtonRenderer.InitRenderer(); 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) { if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0)) { // Ask the user for permission to get notifications on iOS 10.0+ UNUserNotificationCenter.Current.RequestAuthorization( UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (approved, error) => { }); } else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { // Ask the user for permission to get notifications on iOS 8.0+ var settings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, new NSSet()); UIApplication.SharedApplication.RegisterUserNotificationSettings(settings); } global::Xamarin.Forms.Forms.Init(); CachedImageRenderer.Init(); FloatingActionButtonRenderer.InitRenderer(); FlexButton.Init(); LoadApplication(new App(new iOSInitializer())); 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 uiApplication, NSDictionary launchOptions) { // initialisation des composants Rg.Plugins.Popup.Popup.Init(); Forms.SetFlags("CollectionView_Experimental"); //test global::Xamarin.Forms.Forms.Init(); // initialisation des composants AiForms.Renderers.iOS.SettingsViewInit.Init(); //need to write here SfCalendarRenderer.Init(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); CachedImageRenderer.InitImageSourceHandler(); Xamarin.FormsMaps.Init(); CardsViewRenderer.Preserve(); ImageCircleRenderer.Init(); FlexButton.Init(); FormsMaterial.Init(); // Fin initialisation des composants LoadApplication(new App()); FloatingActionButtonRenderer.InitRenderer(); return(base.FinishedLaunching(uiApplication, launchOptions)); }
// // 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 uiApplication, NSDictionary launchOptions) { // initialisation des composants Rg.Plugins.Popup.Popup.Init(); Forms.SetFlags("CollectionView_Experimental"); //test //For banner notification UNUserNotificationCenter.Current.Delegate = new iOSBannerNotification(); //Ask user permission to display notification . its support for iOS 8 // We have checked to see if the device is running iOS 8, if so we are required to ask for the user's permission to receive notifications if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { var notificationSettings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null ); UIApplication.SharedApplication.RegisterUserNotificationSettings(notificationSettings); } // check for a notification if (launchOptions != null) { if (launchOptions.ContainsKey(UIApplication.LaunchOptionsLocalNotificationKey)) { UILocalNotification localNotification = launchOptions[UIApplication.LaunchOptionsLocalNotificationKey] as UILocalNotification; if (localNotification != null) { new UIAlertView(localNotification.AlertAction, localNotification.AlertBody, null, "OK", null).Show(); // reset our badge UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0; } } } global::Xamarin.Forms.Forms.Init(); // initialisation des composants AiForms.Renderers.iOS.SettingsViewInit.Init(); //need to write here SfCalendarRenderer.Init(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); CachedImageRenderer.InitImageSourceHandler(); Xamarin.FormsMaps.Init(); CardsViewRenderer.Preserve(); ImageCircleRenderer.Init(); FlexButton.Init(); FormsMaterial.Init(); // Fin initialisation des composants LoadApplication(new App()); FloatingActionButtonRenderer.InitRenderer(); return(base.FinishedLaunching(uiApplication, launchOptions)); }
// // 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) { Xamarin.Forms.Forms.Init(); ZXing.Net.Mobile.Forms.iOS.Platform.Init(); FloatingActionButtonRenderer.InitRenderer(); App.ScreenWidth = (int)UIScreen.MainScreen.Bounds.Width; App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height; 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) { string fileName = "tasks_db.sql"; string fileLocation = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "..", "Library"); string fullPath = Path.Combine(fileLocation, fileName); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App(fullPath)); FloatingActionButtonRenderer.InitRenderer(); 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) { Xamarin.Calabash.Start(); global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental"); global::Xamarin.Forms.Forms.Init(); FloatingActionButtonRenderer.InitRenderer(); 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) { global::Xamarin.Forms.Forms.Init(); SegmentedControl.FormsPlugin.iOS.SegmentedControlRenderer.Init(); FloatingActionButtonRenderer.InitRenderer(); MR.Gestures.iOS.Settings.LicenseKey = null; UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false); UIApplication.SharedApplication.SetStatusBarHidden(false, false); 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) { ServicePointManager.ServerCertificateValidationCallback += (o, certificate, chain, errors) => true; global::Xamarin.Forms.Forms.Init(); SlideOverKit.iOS.SlideOverKit.Init(); CachedImageRenderer.Init(); RoundedBoxViewRenderer.Init(); FloatingActionButtonRenderer.InitRenderer(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); DependencyService.Register <ToastNotification>(); ToastNotification.Init(); FloatingActionButtonRenderer.InitRenderer(); 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) { Rg.Plugins.Popup.Popup.Init(); global::Xamarin.Forms.Forms.Init(); global::Xamarin.Forms.FormsMaterial.Init(); global::Xamarin.FormsMaps.Init(); Syncfusion.SfPdfViewer.XForms.iOS.SfPdfDocumentViewRenderer.Init(); ImageCircleRenderer.Init(); FloatingActionButtonRenderer.InitRenderer(); new SfRatingRenderer(); SfListViewRenderer.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) { Xamarin.Calabash.Start(); Rg.Plugins.Popup.Popup.Init(); global::Xamarin.Forms.Forms.Init(); App.DisplayScreenWidth = (double)UIScreen.MainScreen.Bounds.Width; App.DisplayScreenHeight = (double)UIScreen.MainScreen.Bounds.Height; App.DisplayScaleFactor = (double)UIScreen.MainScreen.Scale; DependencyService.Register <ToastNotificatorImplementation>(); ToastNotificatorImplementation.Init(); FloatingActionButtonRenderer.InitRenderer(); PullToRefreshLayoutRenderer.Init(); ImageCircleRenderer.Init(); CarouselViewRenderer.Init(); RoundedBoxViewRenderer.Init(); LoadApplication(new App()); //imprimirFuentes(); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); Xamarin.FormsMaps.Init(); var statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView; if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:"))) { statusBar.BackgroundColor = UIColor.FromRGB(0, 69, 63); statusBar.TintColor = UIColor.White; app.StatusBarStyle = UIStatusBarStyle.LightContent; } Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); LoadApplication(new App(new iOSInitializer())); FloatingActionButtonRenderer.InitRenderer(); 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) { Rg.Plugins.Popup.Popup.Init(); var s = new Syncfusion.SfAutoComplete.XForms.iOS.SfAutoCompleteRenderer(); global::Xamarin.Forms.Forms.Init(); Xamarin.FormsGoogleMaps.Init("AIzaSyCkavYT01FceMj7jrEhkOvvMQxNvt-P_cc"); SfPullToRefreshRenderer.Init(); SfListViewRenderer.Init(); CarouselView.FormsPlugin.iOS.CarouselViewRenderer.Init(); FloatingActionButtonRenderer.InitRenderer(); SegmentedControlRenderer.Init(); LoadApplication(new App()); var tint = ((Xamarin.Forms.Color)Xamarin.Forms.Application.Current.Resources["BottomTabTextTint"]).ToUIColor(); UIView.AppearanceWhenContainedIn(typeof(UIAlertController)).TintColor = tint; UIView.AppearanceWhenContainedIn(typeof(UIActivityViewController)).TintColor = tint; UIView.AppearanceWhenContainedIn(typeof(SLComposeViewController)).TintColor = tint; UITabBar.Appearance.TintColor = tint; var result = base.FinishedLaunching(app, options); UIApplication.SharedApplication.StatusBarHidden = false; return(result); }
// // 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) { AsNumAssemblyHelper.HoldAssembly(); global::Xamarin.Forms.Forms.Init(); FloatingActionButtonRenderer.InitRenderer(); OxyPlot.Xamarin.Forms.Platform.iOS.PlotViewRenderer.Init(); DependencyService.Register <ToastNotification>(); Plugin.Toasts.ToastNotification.Init(); //global::Xamarin.FormsMaps.Init(); FormsPlugin.Iconize.iOS.IconControls.Init(); var dummy = new FFImageLoading.Forms.Touch.CachedImageRenderer(); FFImageLoading.Forms.Touch.CachedImageRenderer.Init(); FormsPlugin.Iconize.iOS.IconControls.Init(); Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.IoniconsModule()); ShapeRenderer.Init(); ImageCircleRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }