// // 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(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); SfRatingRenderer sfRatingRenderer = new SfRatingRenderer(); SfRangeSliderRenderer sfRangeSliderRenderer = new SfRangeSliderRenderer(); SfListViewRenderer.Init(); WireupDependency(); App.StatusBarHeight = UIApplication.SharedApplication.StatusBarFrame.Height; App.ScreenSize = new Xamarin.Forms.Size(UIScreen.MainScreen.Bounds.Width, UIScreen.MainScreen.Bounds.Height); var attribute = new UITextAttributes(); attribute.TextColor = UIColor.Clear; UIBarButtonItem.Appearance.SetTitleTextAttributes(attribute, UIControlState.Normal); UIBarButtonItem.Appearance.SetTitleTextAttributes(attribute, UIControlState.Highlighted); var application = (Xamarin.Forms.Application)ContainerManager.Container.Resolve(typeof(App), typeof(App).ToString()); LoadApplication(application); PrintFontNames(); var result = base.FinishedLaunching(app, options); app.KeyWindow.TintColor = Color.FromHex("#853939").ToUIColor(); 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(); 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) { 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) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); Syncfusion.ListView.XForms.iOS.SfListViewRenderer.Init(); Syncfusion.XForms.iOS.Border.SfBorderRenderer.Init(); SfSegmentedControlRenderer.Init(); SfRangeSliderRenderer.Init(); SampleBrowser.Core.iOS.CoreSampleBrowser.Init(UIScreen.MainScreen.Bounds, app.StatusBarFrame.Size.Height); 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(); SfRangeSliderRenderer.Init(); SfLinearProgressBarRenderer.Init(); Core.Init(); SfSwitchRenderer.Init(); SfMapsRenderer.Init(); SfCardViewRenderer.Init(); SfBadgeViewRenderer.Init(); SfListViewRenderer.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)); }
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)); }