// // 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(); SfDataGridRenderer.Init(); SfGaugeRenderer.Init(); SfListViewRenderer.Init(); SfTabViewRenderer.Init(); SfCheckBoxRenderer.Init(); SfRadioButtonRenderer.Init(); SfButtonRenderer.Init(); SfCardViewRenderer.Init(); SfAccordionRenderer.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) { global::Xamarin.Forms.Forms.Init(); SfTabViewRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
private void InitSyncfusionRenderers() { SfTabViewRenderer.Init(); //Initialize new Syncfusion.SfNavigationDrawer.XForms.iOS.SfNavigationDrawerRenderer(); SfListViewRenderer.Init(); SfPullToRefreshRenderer.Init(); new SfBusyIndicatorRenderer(); SfShimmerRenderer.Init(); }
// // 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(); SfTabViewRenderer.Init(); SfListViewRenderer.Init(); CachedImageRenderer.Init(); var ignore = typeof(SvgCachedImage); 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.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(); SfComboBoxRenderer.Init(); SfTabViewRenderer.Init(); SfButtonRenderer.Init(); SfNavigationDrawerRenderer.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) { global::Xamarin.Forms.Forms.Init(); Xamarin.FormsGoogleMaps.Init("AIzaSyDYdbG_jHO5TOZcIPkKHsF0uD6po9AWvik"); ImageCircleRenderer.Init(); CachedImageRenderer.Init(); CarouselViewRenderer.Init(); SfTabViewRenderer.Init(); FormsControls.Touch.Main.Init(); FlowListView.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) { Rg.Plugins.Popup.Popup.Init(); new Syncfusion.SfAutoComplete.XForms.iOS.SfAutoCompleteRenderer(); global::Xamarin.Forms.Forms.Init(); SfListViewRenderer.Init(); SfTabViewRenderer.Init(); CarouselViewRenderer.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) { //Register Syncfusion license Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MjAwOTY5QDMxMzcyZTM0MmUzMGI1ZDBXSEdtNlFBaThYcThSV096UklFTUUraHd4b2UwOWlKNjVlVVBIc2c9;MjAwOTcwQDMxMzcyZTM0MmUzMFlSOTNGcm9NdVkxVkFZcEZTMExsYTYxcFowd21Cd0pHUnlZNVJkQ3kwT1E9;MjAwOTcxQDMxMzcyZTM0MmUzMEltd29Ba01PaVBJWjd0M2lNblJVd1dpS3ArTUQxWlhNT2d2dUpRSWdIL2M9;MjAwOTcyQDMxMzcyZTM0MmUzMEZmUllVQUlsYUpSVjgzdkxjYnpNd0U2dEJ0NnI1VkVWYjkweWF2ZnVnOW89;MjAwOTczQDMxMzcyZTM0MmUzMEYzaDhUZmx1VXR2YjkrLzJqaGFMNmZkUE15RTNDL3N6d3RaK3dOaDJmS289;MjAwOTc0QDMxMzcyZTM0MmUzMGdQbXpFUHFDNW0veTB4S1pOeUNCTnE2WDExUWdjcGJvVXR1VitTUW1WRXM9;MjAwOTc1QDMxMzcyZTM0MmUzMGtKQldFR3BpTENUSzlnbFJXMVRaazkxOVR6QmJrKytPS1drcGphNnluM1E9;MjAwOTc2QDMxMzcyZTM0MmUzMEFhTW5zcDJkeU5oalFGaWMwY0hWK0c5MlV3dXQwck15Y0tuMzRnSE85cGs9;MjAwOTc3QDMxMzcyZTM0MmUzMElXWVhCNmJxOVJjaXlMR3JkS2ZGaXJnVFk5OTFFY3JGU2M5ZUpJWE02aVE9;NT8mJyc2IWhiZH1nfWN9YGpoYmF8YGJ8ampqanNiYmlmamlmanMDHmg5PCA7JjITJzw9Nyd9MDw+;MjAwOTc4QDMxMzcyZTM0MmUzMFpORUlEQnJnMFJVUnkvMzlWK3YwenRuMElrRWdpYXZRVFNRMmRnT2RabjQ9"); global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(); SfTabViewRenderer.Init(); LoadApplication(new App()); UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.Default, false); 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(); LoadApplication(new App()); SampleBrowser.Core.iOS.CoreSampleBrowser.Init(UIScreen.MainScreen.Bounds, app.StatusBarFrame.Size.Height); SfListViewRenderer.Init(); SfButtonRenderer.Init(); SfCheckBoxRenderer.Init(); SfSegmentedControlRenderer.Init(); SfTabViewRenderer.Init(); SfRangeSliderRenderer.Init(); SfTextInputLayoutRenderer.Init(); 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) { //await CrossMedia.Current.Initialize(); global::Xamarin.Forms.Forms.Init(); SfCardViewRenderer.Init(); SfListViewRenderer.Init(); SfGradientViewRenderer.Init(); SfChartRenderer.Init(); SfAvatarViewRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfNavigationDrawerRenderer.Init(); SfScheduleRenderer.Init(); SfDatePickerRenderer.Init(); SfComboBoxRenderer.Init(); SfBusyIndicatorRenderer.Init(); SfNavigationDrawerRenderer.Init(); SfNumericTextBoxRenderer.Init(); SfNumericUpDownRenderer.Init(); SfMapsRenderer.Init(); SfTabViewRenderer.Init(); SfCarouselRenderer.Init(); SfTextInputLayoutRenderer.Init(); SfTreeViewRenderer.Init(); SfBadgeViewRenderer.Init(); SfCheckBoxRenderer.Init(); SfTimePickerRenderer.Init(); InitializeNLog(); 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(); SfTextInputLayoutRenderer.Init(); SfTabViewRenderer.Init(); SfListViewRenderer.Init(); SfDataGridRenderer.Init(); SfDataFormRenderer.Init(); SfRotatorRenderer.Init(); SfComboBoxRenderer.Init(); SfBusyIndicatorRenderer.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) { Forms.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(); SfEffectsViewRenderer.Init(); this.LoadApplication(new App()); SfButtonRenderer.Init(); SfCheckBoxRenderer.Init(); SfDatePickerRenderer.Init(); SfBorderRenderer.Init(); SfGradientViewRenderer.Init(); SfListViewRenderer.Init(); SfRatingRenderer.Init(); SfRotatorRenderer.Init(); SfComboBoxRenderer.Init(); SfRadioButtonRenderer.Init(); SfPopupLayoutRenderer.Init(); SfExpanderRenderer.Init(); SfCardViewRenderer.Init(); SfBadgeViewRenderer.Init(); SfSegmentedControlRenderer.Init(); Core.Init(); SfMapsRenderer.Init(); SfTabViewRenderer.Init(); SfCalendarRenderer.Init(); SfLinearProgressBarRenderer.Init(); SfChartRenderer.Init(); SfGaugeRenderer.Init(); ////UIView statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView; ////if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:"))) ////{ //// statusBar.BackgroundColor = Color.FromHex("#e83f94").ToUIColor(); //// statusBar.TintColor = UIColor.White; ////} var result = base.FinishedLaunching(app, options); var safeAreInset = UIApplication.SharedApplication.KeyWindow.SafeAreaInsets; if (safeAreInset.Top > 0) { AppSettings.Instance.IsSafeAreaEnabled = true; AppSettings.Instance.SafeAreaHeight = safeAreInset.Top; } 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) { global::Xamarin.Forms.Forms.Init(); SfTabViewRenderer.Init(); SfCardViewRenderer.Init(); Core.Init(); SfGradientViewRenderer.Init(); SfRatingRenderer.Init(); SfComboBoxRenderer.Init(); SfListViewRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.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) { global::Xamarin.Forms.Forms.Init(); //render Sftabview SfTabViewRenderer.Init(); //First, iOS 8 requires applications to ask for the user's permission to display notifications if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { var notificationSettings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null ); app.RegisterUserNotificationSettings(notificationSettings); } //set the Delegate to handle UNUserNotificationCenter.Current.Delegate = new NotificationDelegate(); 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) { 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) => { }); // Watch for notifications while app is active UNUserNotificationCenter.Current.Delegate = new UserNotificationCenterDelegate(); } 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(); AnimationViewRenderer.Init(); ZXing.Net.Mobile.Forms.iOS.Platform.Init(); SfChartRenderer.Init(); SfListViewRenderer.Init(); SfButtonRenderer.Init(); SfCheckBoxRenderer.Init(); SfRadioButtonRenderer.Init(); SfPdfDocumentViewRenderer.Init(); SfNumericUpDownRenderer.Init(); SfTabViewRenderer.Init(); SfPickerRenderer.Init(); SfLinearProgressBarRenderer.Init(); SfCircularProgressBarRenderer.Init(); CachedImageRenderer.Init(); SfDataFormRenderer.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. // /// <summary> /// Finisheds the launching. /// </summary> /// <param name="app">The application.</param> /// <param name="options">The options.</param> /// <returns></returns> public override Boolean FinishedLaunching(UIApplication app, NSDictionary options) { AppDomain.CurrentDomain.UnhandledException += this.CurrentDomainOnUnhandledException; TaskScheduler.UnobservedTaskException += this.TaskSchedulerOnUnobservedTaskException; this.Device = new iOSDevice(); this.AnalysisLogger = new AppCenterAnalysisLogger(); Forms.Init(); Calabash.Start(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfTabViewRenderer.Init(); this.LoadApplication(new App(this.Device, this.AnalysisLogger)); 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.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(); SfRichTextEditorRenderer.Init(); SfTabViewRenderer.Init(); SfBadgeViewRenderer.Init(); SfCardViewRenderer.Init(); SfRatingRenderer.Init(); Core.Init(); SfListViewRenderer.Init(); SfGradientViewRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); LoadApplication(new App()); SfDatePickerRenderer.Init(); 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. // /// <summary> /// Finisheds the launching. /// </summary> /// <param name="app">The application.</param> /// <param name="options">The options.</param> /// <returns></returns> public override Boolean FinishedLaunching(UIApplication app, NSDictionary options) { AppDomain.CurrentDomain.UnhandledException += this.CurrentDomainOnUnhandledException; TaskScheduler.UnobservedTaskException += this.TaskSchedulerOnUnobservedTaskException; String connectionString = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "TransactionProcessing.db"); this.Device = new iOSDevice(); this.Database = new DatabaseContext(connectionString); Forms.Init(); Calabash.Start(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfTabViewRenderer.Init(); this.LoadApplication(new App(this.Device, this.Database)); 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(); Core.Init(); SfGradientViewRenderer.Init(); SfChartRenderer.Init(); SfSunburstChartRenderer.Init(); SfImageEditorRenderer.Init(); SfDataGridRenderer.Init(); SfPickerRenderer.Init(); SfPdfDocumentViewRenderer.Init(); SfRangeSliderRenderer.Init(); SfLinearProgressBarRenderer.Init(); SfCircularProgressBarRenderer.Init(); SfCalendarRenderer.Init(); SfCarouselRenderer.Init(); SfRotatorRenderer.Init(); SfAutoCompleteRenderer.Init(); SfBusyIndicatorRenderer.Init(); SfNavigationDrawerRenderer.Init(); SfNumericTextBoxRenderer.Init(); SfNumericUpDownRenderer.Init(); SfRatingRenderer.Init(); SfMapsRenderer.Init(); SfTreeMapRenderer.Init(); SfPullToRefreshRenderer.Init(); SfListViewRenderer.Init(); SfRangeNavigatorRenderer.Init(); SfDataFormRenderer.Init(); SfMaskedEditRenderer.Init(); SfPopupLayoutRenderer.Init(); SfTabViewRenderer.Init(); SfCheckBoxRenderer.Init(); SfRadioButtonRenderer.Init(); SfSegmentedControlRenderer.Init(); SfComboBoxRenderer.Init(); SfTextInputLayoutRenderer.Init(); SfTreeViewRenderer.Init(); SfButtonRenderer.Init(); SfBorderRenderer.Init(); SfBadgeViewRenderer.Init(); SfExpanderRenderer.Init(); SfCardViewRenderer.Init(); SfCardLayoutRenderer.Init(); SfAccordionRenderer.Init(); SfSwitchRenderer.Init(); SfRichTextEditorRenderer.Init(); SfShimmerRenderer.Init(); SfAvatarViewRenderer.Init(); SfTimePickerRenderer.Init(); SfDatePickerRenderer.Init(); SfChatRenderer.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) { global::Xamarin.Forms.Forms.Init(); SfChartRenderer.Init(); SfDataGridRenderer.Init(); SfLinearProgressBarRenderer.Init(); SfCircularProgressBarRenderer.Init(); SfListViewRenderer.Init(); SfDiagramRenderer.Init(); SfTabViewRenderer.Init(); SfCheckBoxRenderer.Init(); SfRadioButtonRenderer.Init(); SfComboBoxRenderer.Init(); SfButtonRenderer.Init(); SfBorderRenderer.Init(); SfExpanderRenderer.Init(); SfCardViewRenderer.Init(); SfCardLayoutRenderer.Init(); SfSwitchRenderer.Init(); SfTimePickerRenderer.Init(); SfDatePickerRenderer.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) { global::Xamarin.Forms.Forms.Init(); SfChartRenderer.Init(); SfSunburstChartRenderer.Init(); SfImageEditorRenderer.Init(); SfDataGridRenderer.Init(); SfPickerRenderer.Init(); SfPdfDocumentViewRenderer.Init(); SfRangeSliderRenderer.Init(); SfScheduleRenderer.Init(); SfGaugeRenderer.Init(); SfDigitalGaugeRenderer.Init(); SfLinearGaugeRenderer.Init(); SfLinearProgressBarRenderer.Init(); SfCircularProgressBarRenderer.Init(); SfCalendarRenderer.Init(); SfCarouselRenderer.Init(); SfRotatorRenderer.Init(); SfAutoCompleteRenderer.Init(); SfBusyIndicatorRenderer.Init(); SfNavigationDrawerRenderer.Init(); SfNumericTextBoxRenderer.Init(); SfNumericUpDownRenderer.Init(); SfRadialMenuRenderer.Init(); SfRatingRenderer.Init(); SfMapsRenderer.Init(); SfTreeMapRenderer.Init(); SfPullToRefreshRenderer.Init(); SfListViewRenderer.Init(); SfKanbanRenderer.Init(); SfRangeNavigatorRenderer.Init(); SfSparklineRenderer.Init(); SfBarcodeRenderer.Init(); SfDataFormRenderer.Init(); SfMaskedEditRenderer.Init(); SfPopupLayoutRenderer.Init(); SfDiagramRenderer.Init(); SfTabViewRenderer.Init(); SfCheckBoxRenderer.Init(); SfRadioButtonRenderer.Init(); SfSegmentedControlRenderer.Init(); SfComboBoxRenderer.Init(); LoadApplication(new FormsApp()); 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(); SfMapsRenderer.Init(); Core.Init(); SfRotatorRenderer.Init(); SfGradientViewRenderer.Init(); SfExpanderRenderer.Init(); SfCheckBoxRenderer.Init(); SfComboBoxRenderer.Init(); SfTabViewRenderer.Init(); SfPdfDocumentViewRenderer.Init(); SfRangeSliderRenderer.Init(); SfScheduleRenderer.Init(); SfCalendarRenderer.Init(); SfAutoCompleteRenderer.Init(); SfBusyIndicatorRenderer.Init(); SfRatingRenderer.Init(); SfPullToRefreshRenderer.Init(); SfListViewRenderer.Init(); SfButtonRenderer.Init(); SfBorderRenderer.Init(); SfBadgeViewRenderer.Init(); SfCardViewRenderer.Init(); SfCardLayoutRenderer.Init(); SfAccordionRenderer.Init(); SfShimmerRenderer.Init(); SfAvatarViewRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Xamarin.Forms.Forms.SetFlags(new string[] { "CarouselView_Experimental", "SwipeView_Experimental", "IndicatorView_Experimental", "MediaElement_Experimental" }); UINavigationBar.Appearance.TintColor = UIColor.Red; UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes() { TextColor = UIColor.Red }); //Actualizar el token de las notificaciones MessagingCenter.Subscribe <JobMe.ViewModels.MainEmployeeViewModel>(this, "DeleteToken", sender => { if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0)) { UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (granted, error) => { if (granted) { InvokeOnMainThread(UIApplication.SharedApplication.RegisterForRemoteNotifications); } }); } else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { var pushSettings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, new NSSet()); UIApplication.SharedApplication.RegisterUserNotificationSettings(pushSettings); UIApplication.SharedApplication.RegisterForRemoteNotifications(); } else { UIRemoteNotificationType notificationTypes = UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound; UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes); } }); MessagingCenter.Subscribe <JobMe.ViewModels.LoginViewModel>(this, "DeleteToken", sender => { if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0)) { InvokeOnMainThread(UIApplication.SharedApplication.RegisterForRemoteNotifications); } else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { var pushSettings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, new NSSet()); UIApplication.SharedApplication.RegisterUserNotificationSettings(pushSettings); UIApplication.SharedApplication.RegisterForRemoteNotifications(); } else { UIRemoteNotificationType notificationTypes = UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound; UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes); } }); if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0)) { UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (granted, error) => { if (granted) { InvokeOnMainThread(UIApplication.SharedApplication.RegisterForRemoteNotifications); } }); } else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { var pushSettings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, new NSSet()); UIApplication.SharedApplication.RegisterUserNotificationSettings(pushSettings); UIApplication.SharedApplication.RegisterForRemoteNotifications(); } else { UIRemoteNotificationType notificationTypes = UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound; UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes); } global::Xamarin.Forms.Forms.Init(); SfPopupLayoutRenderer.Init(); SfPullToRefreshRenderer.Init(); SfCardLayoutRenderer.Init(); CarouselViewRenderer.Init(); SfTabViewRenderer.Init(); SfRotatorRenderer.Init(); SfBadgeViewRenderer.Init(); Syncfusion.XForms.iOS.Chat.SfChatRenderer.Init(); SfBorderRenderer.Init(); new SfComboBoxRenderer(); SfTextInputLayoutRenderer.Init(); SfMaskedEditRenderer.Init(); SfPdfDocumentViewRenderer.Init(); SfRangeSliderRenderer.Init(); SfPickerRenderer.Init(); SfListViewRenderer.Init(); SfEffectsViewRenderer.Init(); SfAvatarViewRenderer.Init(); SfMaskedEditRenderer.Init(); Syncfusion.XForms.iOS.PopupLayout.SfPopupLayoutRenderer.Init(); //SfRotatorRenderer.Init(); Syncfusion.XForms.iOS.Buttons.SfSegmentedControlRenderer.Init(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); FormsVideoPlayer.Init(); CardsViewRenderer.Preserve(); App.ScreenWidth = UIScreen.MainScreen.Bounds.Width; App.ScreenHeight = UIScreen.MainScreen.Bounds.Height; LoadApplication(new App(false)); // LoadApplication(new App(false)); // Watch for notifications while the app is active UNUserNotificationCenter.Current.Delegate = new UserNotificationCenterDelegate(); 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(); Core.Init(); CachedImageRenderer.Init(); SfGradientViewRenderer.Init(); SfChartRenderer.Init(); SfSunburstChartRenderer.Init(); SfPickerRenderer.Init(); SfLinearProgressBarRenderer.Init(); SfCircularProgressBarRenderer.Init(); SfNumericTextBoxRenderer.Init(); SfNumericUpDownRenderer.Init(); SfRatingRenderer.Init(); SfPullToRefreshRenderer.Init(); SfListViewRenderer.Init(); SfBarcodeRenderer.Init(); SfMaskedEditRenderer.Init(); SfPopupLayoutRenderer.Init(); SfTabViewRenderer.Init(); SfCheckBoxRenderer.Init(); SfTextInputLayoutRenderer.Init(); SfButtonRenderer.Init(); SfBorderRenderer.Init(); SfCardViewRenderer.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 uiApplication, NSDictionary launchOptions) { Rg.Plugins.Popup.Popup.Init(); global::Xamarin.Forms.Forms.Init(); SfDataGridRenderer.Init(); SfPdfDocumentViewRenderer.Init(); SfRangeSliderRenderer.Init(); SfScheduleRenderer.Init(); SfLinearProgressBarRenderer.Init(); SfCircularProgressBarRenderer.Init(); SfCalendarRenderer.Init(); SfBusyIndicatorRenderer.Init(); SfNavigationDrawerRenderer.Init(); SfNumericTextBoxRenderer.Init(); SfNumericUpDownRenderer.Init(); SfRadialMenuRenderer.Init(); SfPullToRefreshRenderer.Init(); SfDataFormRenderer.Init(); SfPopupLayoutRenderer.Init(); SfTabViewRenderer.Init(); SfCheckBoxRenderer.Init(); SfButtonRenderer.Init(); SfAccordionRenderer.Init(); CachedImageRenderer.Init(); SfListViewRenderer.Init(); ZXing.Net.Mobile.Forms.iOS.Platform.Init(); LoadApplication(new App()); return(base.FinishedLaunching(uiApplication, launchOptions)); }