// // 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(); SfRotatorRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
/// <summary> /// Initializes a new instance of the MainPage class. /// </summary> public MainPage() { this.InitializeComponent(); SfPopupLayoutRenderer.Init(); SfDataGridRenderer.Init(); SfListViewRenderer.Init(); SfRotatorRenderer.Init(); this.LoadApplication(new SfPopupLayout.App()); }
// // 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.FormsMaps.Init(); SfRotatorRenderer.Init(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); new SfRotatorRenderer(); new SfBusyIndicatorRenderer(); 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 app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); SfRotatorRenderer.Init(); SfGradientViewRenderer.Init(); Core.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(); 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.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(); SfPopupLayoutRenderer.Init(); SfComboBoxRenderer.Init(); SfRatingRenderer.Init(); SfRotatorRenderer.Init(); SfCardViewRenderer.Init(); SfGradientViewRenderer.Init(); SfButtonRenderer.Init(); SfListViewRenderer.Init(); SfBorderRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public static void Initialize(UIApplication app, NSDictionary options) { iOSShinyHost.Init(new ShinyAppStartup()); GoogleClientManager.Initialize(); FacebookClientManager.Initialize(app, options); Xamarin.Forms.DependencyService.Register <ToastNotification>(); ToastNotification.Init(); CachedImageRenderer.Init(); FFImageLoading.FormsHandler.Init(debug: false); CachedImageRenderer.InitImageSourceHandler(); // Override default ImageFactory by your implementation. FormsGoogleMaps.Init(Config.GoogleMapKeyiOS, new PlatformConfig { ImageFactory = new CachingImageFactory() }); SharpnadoInitializer.Initialize(); // Syncfusion SfButtonRenderer.Init(); SfRotatorRenderer.Init(); SfEffectsViewRenderer.Init(); SfSegmentedControlRenderer.Init(); //SfListViewRenderer.Init(); //SfPickerRenderer.Init(); //SfDataGridRenderer.Init(); //SfCheckBoxRenderer.Init(); //SfComboBoxRenderer.Init(); //SfPullToRefreshRenderer.Init(); //SfImageEditorRenderer.Init(); //SfCalendarRenderer.Init(); //SfBadgeViewRenderer.Init(); //SfChartRenderer.Init(); //SfBusyIndicatorRenderer.Init(); //SfTabViewRenderer.Init(); //SfRatingRenderer.Init(); //SfPopupLayoutRenderer.Init(); //SfMapsRenderer.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(); SfChartRenderer.Init(); SfRatingRenderer.Init(); Core.Init(); SfRotatorRenderer.Init(); SfGradientViewRenderer.Init(); SfCardViewRenderer.Init(); SfBadgeViewRenderer.Init(); SfBorderRenderer.Init(); SfListViewRenderer.Init(); SfButtonRenderer.Init(); // Need to call this to initialise busy indicator, otherwise it won't work on iOS // https://help.syncfusion.com/xamarin/busy-indicator/getting-started new SfBusyIndicatorRenderer(); 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(); SfExpanderRenderer.Init(); SfCheckBoxRenderer.Init(); Core.Init(); SfSegmentedControlRenderer.Init(); SfRotatorRenderer.Init(); SfRatingRenderer.Init(); SfComboBoxRenderer.Init(); SfListViewRenderer.Init(); CachedImageRenderer.Init(); SfBadgeViewRenderer.Init(); SfGradientViewRenderer.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.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental"); global::Xamarin.Forms.Forms.Init(); SfRichTextEditorIOS.Init(); SfTextInputLayoutRenderer.Init(); SfDataFormRenderer.Init(); SfCheckBoxRenderer.Init(); SfRotatorRenderer.Init(); SfRangeSliderRenderer.Init(); SfRatingRenderer.Init(); SfComboBoxRenderer.Init(); SfCalendarRenderer.Init(); SfGradientViewRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.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) { global::Xamarin.Forms.Forms.Init(); SfDatePickerRenderer.Init(); ZXing.Net.Mobile.Forms.iOS.Platform.Init(); Core.Init(); SfRotatorRenderer.Init(); SfCardViewRenderer.Init(); SfRatingRenderer.Init(); SfListViewRenderer.Init(); SfComboBoxRenderer.Init(); SfTextInputLayoutRenderer.Init(); SfAvatarViewRenderer.Init(); SfSegmentedControlRenderer.Init(); SfRadioButtonRenderer.Init(); SfGradientViewRenderer.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(); SfComboBoxRenderer.Init(); SfMapsRenderer.Init(); SfCalendarRenderer.Init(); SfRotatorRenderer.Init(); SfRatingRenderer.Init(); SfBorderRenderer.Init(); SfListViewRenderer.Init(); SfParallaxViewRenderer.Init(); SfButtonRenderer.Init(); AppCenter.Start("982cfe2f-ac1f-4aa1-925c-a5bc8fd892a5", typeof(Analytics), typeof(Crashes)); LoadApplication(new App()); var result = base.FinishedLaunching(app, options); 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) { Xamarin.FormsMaps.Init(); global::Xamarin.Forms.Forms.Init(); SfChartRenderer.Init(); SfRotatorRenderer.Init(); SfCardLayoutRenderer.Init(); SfCalendarRenderer.Init(); SfCardViewRenderer.Init(); Core.Init(); SfGradientViewRenderer.Init(); SfListViewRenderer.Init(); SfRatingRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfComboBoxRenderer.Init(); SfDatePickerRenderer.Init(); Syncfusion.XForms.iOS.PopupLayout.SfPopupLayoutRenderer.Init(); global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.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.Init(); SfMapsRenderer.Init(); SfCardViewRenderer.Init(); SfSegmentedControlRenderer.Init(); SfRotatorRenderer.Init(); Core.Init(); SfExpanderRenderer.Init(); SfCheckBoxRenderer.Init(); SfBadgeViewRenderer.Init(); SfGradientViewRenderer.Init(); SfRatingRenderer.Init(); SfComboBoxRenderer.Init(); SfListViewRenderer.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); SfPullToRefreshRenderer.Init(); SfAvatarViewRenderer.Init(); new SfBusyIndicatorRenderer(); 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(); 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(); 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)); }
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)); }