// // 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()); SfPdfDocumentViewRenderer.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) { global::Xamarin.Forms.Forms.Init(); SfTextInputLayoutRenderer.Init(); SfAvatarViewRenderer.Init(); SfSegmentedControlRenderer.Init(); SfRadioButtonRenderer.Init(); Core.Init(); SfComboBoxRenderer.Init(); SfCalendarRenderer.Init(); SfCardViewRenderer.Init(); SfListViewRenderer.Init(); SfRatingRenderer.Init(); SfGradientViewRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfPdfDocumentViewRenderer.Init(); SfRangeSliderRenderer.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) { 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)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { var renderer = new Syncfusion.SfAutoComplete.XForms.iOS.SfAutoCompleteRenderer(); global::Xamarin.Forms.Forms.Init(); SegmentedControlRenderer.Init(); CarouselViewRenderer.Init(); KeyboardOverlapRenderer.Init(); AnimationViewRenderer.Init(); Xamarin.FormsGoogleMaps.Init("AIzaSyCxXBNtq5ksFXZJBwW_SRkf3gEMOg4YhPc"); TintedImageRenderer.Init(); App.ScreenHeight = UIScreen.MainScreen.Bounds.Height; App.ScreenWidth = UIScreen.MainScreen.Bounds.Width; //BlobCache.ApplicationName = "Voltaire"; // Code for starting up the Xamarin Test Cloud Agent #if DEBUG Xamarin.Calabash.Start(); #else AppCenter.Start("3d0ef256-3c90-4860-b789-63ff7e930523", typeof(Distribute), typeof(Analytics), typeof(Crashes)); Distribute.DontCheckForUpdatesInDebug(); #endif SfListViewRenderer.Init(); LoadApplication(new App()); SfPdfDocumentViewRenderer.Init(); var result = base.FinishedLaunching(app, options); UIApplication.SharedApplication.StatusBarHidden = false; return(result); }
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 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)); }
// // 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)); }
// // 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(); 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)); }