Пример #1
0
        //
        // 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();
            SfCalendarRenderer.Init();
            SfCardViewRenderer.Init();
            SfRatingRenderer.Init();
            SfAvatarViewRenderer.Init();
            SfBadgeViewRenderer.Init();
            SfBorderRenderer.Init();
            SfListViewRenderer.Init();
            SfButtonRenderer.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Пример #2
0
        //
        // 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();

            //Settings.AppId = "1659227674127381";
            //Settings.DisplayName = "Busy Bee";
            SfCalendarRenderer.Init();
            SfScheduleRenderer.Init();

            global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();


            LoadApplication(new App());
            FacebookClientManager.Initialize(app, options);
            return(base.FinishedLaunching(app, options));
        }
Пример #3
0
        // 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();
            GoogleClientManager.Initialize();
            this.LoadApplication(new App());
            SfButtonRenderer.Init();
            SfCheckBoxRenderer.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();
            new SfMapsRenderer();
            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);
        }
Пример #4
0
        //
        // 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.Init();
            SvgImageRenderer.Init();
            new SfNumericTextBoxRenderer();
            LoadApplication(new App());

            SfButtonRenderer.Init();
            Syncfusion.XForms.iOS.Border.SfBorderRenderer.Init();
            Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init();
            SfCalendarRenderer.Init();
            SfListViewRenderer.Init();
            SfDataFormRenderer.Init();
            SfPickerRenderer.Init();
            SfTextInputLayoutRenderer.Init();
            return(base.FinishedLaunching(app, options));
        }
Пример #5
0
        //
        // 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.SetFlags("Expander_Experimental");
            global::Xamarin.Forms.Forms.SetFlags("Shapes_Experimental");
            global::Xamarin.Forms.Forms.Init();
            SfCalendarRenderer.Init();

            //Syncfusion.XForms.iOS.Accordion.SfAccordionRenderer.Init();
            Syncfusion.XForms.iOS.Buttons.SfCheckBoxRenderer.Init();
            Syncfusion.XForms.iOS.Buttons.SfButtonRenderer.Init();
            Syncfusion.XForms.iOS.Buttons.SfRadioButtonRenderer.Init();
            Syncfusion.XForms.iOS.Expander.SfExpanderRenderer.Init();

            LoadApplication(new App());

            Notification.iOSNotificationService.InitNotification(app, options);
            return(base.FinishedLaunching(app, options));
        }
Пример #6
0
        //
        // 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));
        }
Пример #7
0
        //
        // 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);
        }
Пример #8
0
        //
        // 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));
        }
Пример #9
0
        //
        // 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));
        }
Пример #11
0
        //
        // 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));
        }
Пример #12
0
        //
        // 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)
        {
            Material.Init();

            if (options != null)
            {
                if (options.ContainsKey(UIApplication.LaunchOptionsRemoteNotificationKey))
                {
                    NSDictionary userInfo = (NSDictionary)options[UIApplication.LaunchOptionsRemoteNotificationKey];
                    if (userInfo != null)
                    {
                        RecieveNotification(userInfo);
                        //CrossBadge.Current.SetBadge(SJMC.Helpers.Settings.NotificationBadageCount);
                    }
                    //DidReceiveRemoteNotification(app, userInfo, null);
                }
            }

            CachedImageRenderer.Init();
            CachedImageRenderer.InitImageSourceHandler();

            var config = new FFImageLoading.Config.Configuration()
            {
                VerboseLogging                 = false,
                VerbosePerformanceLogging      = false,
                VerboseMemoryCacheLogging      = false,
                VerboseLoadingCancelledLogging = false,
                Logger = new CustomLogger(),
            };

            ImageService.Instance.Initialize(config);
            Xamarin.Forms.Forms.SetFlags("CarouselView_Experimental");
            Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            // Add Pop up
            Rg.Plugins.Popup.Popup.Init();
            Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MTU2NjkwQDMxMzcyZTMzMmUzMEMydm9JYmZXaEZlQllmK0dHbnp1azc5MXVTcVhaUlp6OXBOb2xWZm9URXM9");
            Syncfusion.SfPdfViewer.XForms.iOS.SfPdfDocumentViewRenderer.Init();
            Syncfusion.SfRangeSlider.XForms.iOS.SfRangeSliderRenderer.Init();
            SfCalendarRenderer.Init();
            new SfRatingRenderer();
            Xamarin.FormsGoogleMaps.Init("AIzaSyDZJDdRcGq2OvtQHO4pjLVCOJHLCw463qw");
            Xamarin.FormsMaps.Init();
            FormsVideoPlayer.Init();
            new SfTabViewRenderer();

            //            FirebasePushNotificationManager.Initialize(options, new NotificationUserCategory[]
            //{
            //new NotificationUserCategory("message",new List<NotificationUserAction> {
            //new NotificationUserAction("Reply","Reply",NotificationActionType.Foreground)
            //}),
            //new NotificationUserCategory("request",new List<NotificationUserAction> {
            //new NotificationUserAction("Accept","Accept"),
            //new NotificationUserAction("Reject","Reject",NotificationActionType.Destructive)
            //})

            //},true);
            //            if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
            //            {
            //                var authOptions = UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound;
            //                UNUserNotificationCenter.Current.RequestAuthorization(authOptions, (granted, error) =>
            //                {
            //                    Console.WriteLine(granted);
            //                });
            //                UNUserNotificationCenter.Current.Delegate = new MyNotificationCenterDelegate();
            //            }
            //            else
            //            {
            //                // iOS 9 <=
            //                var allNotificationTypes = UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound;
            //                var settings = UIUserNotificationSettings.GetSettingsForTypes(allNotificationTypes, null);
            //                UIApplication.SharedApplication.RegisterUserNotificationSettings(settings);
            //            }



            InitPushNotification();
            //hamad
            //CrossBadge.Current.SetBadge(SJMC.Helpers.Settings.NotificationBadageCount);
            LoadApplication(new App());



            return(base.FinishedLaunching(app, options));
        }
Пример #13
0
        //
        // 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));
        }