示例#1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            RendererInitializer.Init();
            XfxControls.Init();
            //global::Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental");
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            UserDialogs.Init(this);
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: true);
            ImageCircleRenderer.Init();
            CarouselViewRenderer.Init();
            AnimationViewRenderer.Init();
#pragma warning disable CS0618 // Type or member is obsolete
            Push.SetSenderId("157557116902");
#pragma warning restore CS0618 // Type or member is obsolete
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            HtmlLabelRenderer.Initialize();
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
            {
                Window.ClearFlags(WindowManagerFlags.TranslucentStatus);
                Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds);
                Window.SetStatusBarColor(Android.Graphics.Color.ParseColor("#088502"));
            }

            //This forces the custom renderers to be used
            //Android.Glide.Forms.Init();

            LoadApplication(new App());
            FirebasePushNotificationManager.ProcessIntent(this, Intent);
        }
示例#2
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            HtmlLabelRenderer.Initialize();

            global::Xamarin.Forms.Forms.Init(this, bundle);

            CachedImageRenderer.Init(false);

            var s = new SfPdfDocumentViewRenderer();

            CheckboxRenderer.Init();

            AnimationViewRenderer.Init();

            BlobCache.ApplicationName = "AXA";

            if (Device.Idiom == TargetIdiom.Phone)
            {
                RequestedOrientation = ScreenOrientation.Portrait;
            }
            else
            {
                RequestedOrientation = ScreenOrientation.Landscape;
            }

            LoadApplication(new App());
        }
示例#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)
        {
            HtmlLabelRenderer.Initialize();
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
示例#4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            HtmlLabelRenderer.Initialize();
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
示例#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)
        {
            Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
            HtmlLabelRenderer.Initialize();
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
示例#6
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            HtmlLabelRenderer.Initialize();
            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new BdP_MV.App());
        }
示例#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();
     LoadApplication(new App());
     //Downloaded();
     Constans.myZipPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal));
     HtmlLabelRenderer.Initialize();
     global::Xamarin.Forms.Forms.Init();
     return(base.FinishedLaunching(app, options));
 }
示例#8
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            if (Window == null)
            {
                Window = new UIWindow(frame: UIScreen.MainScreen.Bounds);
                var initialViewController = new SplashViewController();
                Window.RootViewController = initialViewController;
                Window.MakeKeyAndVisible();

                return(true);
            }
            else
            {
                global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental", "Expander_Experimental");
                HtmlLabelRenderer.Initialize();

                new Syncfusion.XForms.iOS.ComboBox.SfComboBoxRenderer();

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

                ZXing.Net.Mobile.Forms.iOS.Platform.Init();
                var ignore = typeof(SvgCachedImage);

                CachedImageRenderer.Init(); // Initializing FFImageLoading

                Stormlion.PhotoBrowser.iOS.Platform.Init();
                CarouselViewRenderer.Init(); // Initializing CarouselView
                new SfRotatorRenderer();
                Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init();
                Syncfusion.XForms.iOS.BadgeView.SfBadgeViewRenderer.Init();
                AnimationViewRenderer.Init();

                var platformConfig = new PlatformConfig
                {
                    ImageFactory = new CachingImageFactory()
                };
                Xamarin.FormsGoogleMaps.Init(GlobalSettings.GoogleMapsApiKey, platformConfig);

                //ButtonCircleRenderer.Init();

                Rg.Plugins.Popup.Popup.Init();

                CardsViewRenderer.Preserve();
                TouchEffectPreserver.Preserve();
                LoadApplication(new App());

                Plugin.Segmented.Control.iOS.SegmentedControlRenderer.Initialize();

                FirebasePushNotificationManager.Initialize(options, true);

                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)
        {
            VideoViewRenderer.Init();
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new ELearningApp.App());

            //FormsVideoPlayer.Init();
            HtmlLabelRenderer.Initialize();

            return(base.FinishedLaunching(app, options));
        }
示例#10
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            HtmlLabelRenderer.Initialize();
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
示例#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();
            HtmlLabelRenderer.Initialize();
            Rg.Plugins.Popup.Popup.Init();
            Parallelo.iOS.Setup.Init();
            Parallelo.Maps.iOS.MapRenderer.Init("AIzaSyBFBu8enIIOTgxuhhKbQ7YiNZLgUm1i0iE");

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
示例#12
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;

            ToolbarResource = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            HtmlLabelRenderer.Initialize();

            Window.AddFlags(WindowManagerFlags.KeepScreenOn);

            Xamarin.Essentials.Platform.Init(this, bundle);

            Rg.Plugins.Popup.Popup.Init(this, bundle);

            //AnimationViewRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);

            CrossCurrentActivity.Current.Init(this, bundle);

            if (CrossMediaManager.Current == null)
            {
                CrossMediaManager.Current = new MediaManagerImplementation();
            }

            // use custom Android notifications
            CrossMediaManager.Current.MediaNotificationManager = new PVLMediaNotificationManager(Android.App.Application.Context, typeof(ExoPlayerAudioService));
            //CrossMediaManager.Current.MediaNotificationManager = new PVLMediaNotificationManager(Android.App.Application.Context, typeof(MediaPlayerService));

            // use exoPlayer
            MediaManagerImplementation current = CrossMediaManager.Current as MediaManagerImplementation;
            var exoPlayer = new ExoPlayerAudioImplementation(current.MediaSessionManager);

            CrossMediaManager.Current.AudioPlayer = exoPlayer;

            CrossNotifications.Current.GetType();

            TintedImageRenderer.Init();

            var s = new SfPickerRenderer();

            VideoViewRenderer.Init();

            CarouselViewRenderer.Init();

            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(false);

            BlobCache.ApplicationName = "Medit";

            LoadApplication(new App());
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.SetFlags(new[]
            {
                "Expander_Experimental"
            });

            HtmlLabelRenderer.Initialize();
            global::Xamarin.Forms.Forms.Init();

            Rg.Plugins.Popup.Popup.Init();
            XF.Material.iOS.Material.Init();

            IQKeyboardManager.SharedManager.Enable                     = true;
            IQKeyboardManager.SharedManager.EnableAutoToolbar          = true;
            IQKeyboardManager.SharedManager.ShouldResignOnTouchOutside = true;
            IQKeyboardManager.SharedManager.PreviousNextDisplayMode    = IQPreviousNextDisplayMode.AlwaysHide;

            FlowListView.Init();

            LoadApplication(new App());

            FirebasePushNotificationManager.Initialize(options, true);
            FirebasePushNotificationManager.CurrentNotificationPresentationOption = UNNotificationPresentationOptions.Alert | UNNotificationPresentationOptions.Badge | UNNotificationPresentationOptions.Sound;

            UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
            Syncfusion.XForms.iOS.RichTextEditor.SfRichTextEditorRenderer.Init();

            var result = base.FinishedLaunching(app, options);

            app.KeyWindow.TintColor = UIColor.Gray;

            // Color of the tabbar background:
            UITabBar.Appearance.BarTintColor = UIColor.FromRGB(247, 247, 247);

            // Color of the selected tab text color:
            UITabBarItem.Appearance.SetTitleTextAttributes(
                new UITextAttributes()
            {
                TextColor = UIColor.FromRGB(0, 122, 255)
            },
                UIControlState.Selected);

            // Color of the unselected tab icon & text:
            UITabBarItem.Appearance.SetTitleTextAttributes(
                new UITextAttributes()
            {
                TextColor = UIColor.FromRGB(146, 146, 146)
            },
                UIControlState.Normal);

            return(result);
        }
示例#14
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            HtmlLabelRenderer.Initialize();

            global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental");
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
示例#15
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            // HtmlLabel plugin
            HtmlLabelRenderer.Initialize();
            global::Xamarin.Forms.Forms.Init();


            LoadApplication(new App());
            this.UntrustedCertificateWorkAround();
            return(base.FinishedLaunching(app, options));
        }
示例#16
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            HtmlLabelRenderer.Initialize();
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
            Xamarin.Forms.Application.Current.On <Xamarin.Forms.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize);
        }
示例#17
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)
        {
            Rg.Plugins.Popup.Popup.Init();

            Xamarin.Forms.Forms.Init();
            LoadApplication(new App(new IOSInitializer()));

            HtmlLabelRenderer.Initialize();

            Instance = app;

            return(base.FinishedLaunching(app, options));
        }
示例#18
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            //SetTheme(Resource.Style.MainTheme); // <-- Added
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            // Initializing FFImageLoading
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: true);
            Forms.SetFlags("FastRenderers_Experimental", "CollectionView_Experimental", "Expander_Experimental");
            HtmlLabelRenderer.Initialize();
            ZXing.Net.Mobile.Forms.Android.Platform.Init();
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, savedInstanceState);
            Xamarin.FormsMaps.Init(this, savedInstanceState);

            TouchEffectPreserver.Preserve();
            // Initializing Popups
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            //CardsView
            PanCardView.Droid.CardsViewRenderer.Preserve();
            CarouselViewRenderer.Init();

            PayCardsRecognizerService.Initialize(this);

            ButtonCircleRenderer.Init();

            //ACR UserDialogs initializing
            UserDialogs.Init(this);

            Lottie.Forms.Droid.AnimationViewRenderer.Init();
            Stormlion.PhotoBrowser.Droid.Platform.Init(this);
            PancakeViewRenderer.Init();
            CrossCurrentActivity.Current.Init(this, savedInstanceState);

            var platformConfig = new PlatformConfig
            {
                BitmapDescriptorFactory = new CachingNativeBitmapDescriptorFactory()
            };

            Xamarin.FormsGoogleMaps.Init(this, savedInstanceState, platformConfig);

            CustomTabsConfiguration.CustomTabsClosingMessage = null;

            LoadApplication(new App());

            FirebasePushNotificationManager.ProcessIntent(this, Intent);
            Window.SetSoftInputMode(Android.Views.SoftInput.AdjustResize);
        }
示例#19
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            //Downloaded();
            Constans.myZipPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal));
            HtmlLabelRenderer.Initialize();
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
示例#20
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)
        {
            HtmlLabelRenderer.Initialize();
            FormsWebViewRenderer.Initialize();
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
            global::Xamarin.Forms.Forms.Init();

            //TODO Trial Mode only allows 15 seconds of playback see
            //https://github.com/adamfisher/Xamarin.Forms.VideoPlayer/blob/master/GettingStarted.md
            //FormsVideoPlayer.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
示例#21
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            NotificationCenter.CreateNotificationChannel();
            UserDialogs.Init(this);
            HtmlLabelRenderer.Initialize();
            Rg.Plugins.Popup.Popup.Init(this, bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App(new AndroidInitializer()));
            Instance = this;
            NotificationCenter.NotifyNotificationTapped(Intent);
        }
示例#22
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)
 {
     Rg.Plugins.Popup.Popup.Init();
     HtmlLabelRenderer.Initialize();
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App(new iOSInitializer()));
     if (!UIDevice.CurrentDevice.CheckSystemVersion(13, 0))
     {
         UIView statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView;
         if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:")))
         {
             statusBar.BackgroundColor = UIColor.FromRGB(228, 108, 10);
         }
     }
     return(base.FinishedLaunching(app, options));
 }
示例#23
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            // init htmlLabel plugin
            HtmlLabelRenderer.Initialize();
            global::Xamarin.Forms.Forms.Init(this, bundle);


            global::Xamarin.Forms.Forms.Init(this, bundle);

            LoadApplication(new App());
            this.UntrustedCertificateWorkAround();
        }
示例#24
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Settings.AppID       = "1840011542984981";
            Settings.DisplayName = "Xama­r­i­n­F­o­r­m­s­N­a­t­i­v­e­L­ogin";

            Rox.VideoIos.Init();

            HtmlLabelRenderer.Initialize();

            global::Xamarin.Forms.Forms.Init();

            Rg.Plugins.Popup.Popup.Init();

            TintedImageRenderer.Init();

            CrossMediaManager.Current = new MediaManagerImplementation();

            ProgressRingRenderer.Init();

            CarouselViewRenderer.Init();

            SfPickerRenderer.Init();

            Akavache.BlobCache.ApplicationName = "Medit";

            AnimationViewRenderer.Init();

            CachedImageRenderer.Init();

            LoadApplication(new App());

            ApplicationDelegate.SharedInstance.FinishedLaunching(app, options);

            UITabBar.Appearance.TintColor = ((Xamarin.Forms.Color)Xamarin.Forms.Application.Current.Resources["primaryDark"]).ToUIColor();
            UITabBar.Appearance.SelectedImageTintColor = ((Xamarin.Forms.Color)Xamarin.Forms.Application.Current.Resources["primaryDark"]).ToUIColor();
            UISwitch.Appearance.OnTintColor            = ((Xamarin.Forms.Color)Xamarin.Forms.Application.Current.Resources["primary"]).ToUIColor();

            //UINavigationBar.Appearance.TintColor = ((Xamarin.Forms.Color)Xamarin.Forms.Application.Current.Resources["primaryDark"]).ToUIColor(); //Tint color of button items
            //UIBarButtonItem.Appearance.TintColor = ((Xamarin.Forms.Color)Xamarin.Forms.Application.Current.Resources["primaryDark"]).ToUIColor(); //Tint color of button items

            var result = base.FinishedLaunching(app, options);

            UIApplication.SharedApplication.StatusBarHidden = false;

            return(result);
        }
示例#25
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)
 {
     HtmlLabelRenderer.Initialize();
     Rg.Plugins.Popup.Popup.Init();
     Forms.SetFlags("CollectionView_Experimental");
     global::Xamarin.Forms.Forms.Init();
     FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
     LoadApplication(new App());
     ConfigureSession();
     Window = new UIWindow(UIScreen.MainScreen.Bounds);
     if (Window != null)
     {
         var allTapGesture = new WindowGesture();
         Window.AddGestureRecognizer(allTapGesture);
     }
     return(base.FinishedLaunching(app, options));
 }
示例#26
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)
        {
            RendererInitializer.Init();
            XfxControls.Init();
            global::Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental");
            global::Xamarin.Forms.Forms.Init();
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init();

            UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes()
            {
                Font = UIFont.FromName("AvenirLTStd-Medium", 17)
            });

            //UINavigationBar.Appearance.tit
            // Color of the selected tab icon:s
            UITabBar.Appearance.SelectedImageTintColor = UIColor.FromRGB(255, 137, 0);

            // Color of the tabbar background:
            //UITabBar.Appearance.BarTintColor = UIColor.FromRGB(239, 57, 56);

            // Color of the selected tab text color:
            UITabBarItem.Appearance.SetTitleTextAttributes(
                new UITextAttributes()
            {
                TextColor = UIColor.FromRGB(255, 137, 0)
            },
                UIControlState.Selected);

            // Color of the unselected tab icon & text:
            UITabBarItem.Appearance.SetTitleTextAttributes(
                new UITextAttributes()
            {
                TextColor = UIColor.FromRGB(0, 0, 0)
            },
                UIControlState.Normal);

            Rg.Plugins.Popup.Popup.Init();
            ImageCircleRenderer.Init();
            CarouselViewRenderer.Init();
            AnimationViewRenderer.Init();
            HtmlLabelRenderer.Initialize();
            LoadApplication(new App());
            FirebasePushNotificationManager.Initialize(options, true);
            return(base.FinishedLaunching(app, options));
        }
示例#27
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)
        {
            try
            {
                HtmlLabelRenderer.Initialize();
                global::Xamarin.Forms.Forms.Init();
                FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
                FormsPlugin.Iconize.iOS.IconControls.Init();

                Xamarin.Forms.DependencyService.Register <IDependencyGetter, DepenencyGetter>();
                //UIView statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView;
                //if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:")))
                //{
                //    statusBar.BackgroundColor = new Color(206, 30, 33).ToUIColor();
                //}
                var statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView;
                if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:")))
                {
                    statusBar.BackgroundColor = Color.FromHex("#ce1e21").ToUIColor();;
                    UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.Default;
                    statusBar.TintColor = UIColor.White;
                }


                UITabBar.Appearance.SelectedImageTintColor = Color.FromHex("#ce1e21").ToUIColor();
                UITabBarItem.Appearance.SetTitleTextAttributes(
                    new UITextAttributes()
                {
                    TextColor = Color.FromHex("#ce1e21").ToUIColor()
                },
                    UIControlState.Selected);
                //UINavigationBar.Appearance.BarTintColor = UIColor.Blue;
                LoadApplication(new App());

                var result = base.FinishedLaunching(app, options);
                App.AuthenticationClient.PlatformParameters = new PlatformParameters(UIApplication.SharedApplication.KeyWindow.RootViewController);


                return(result);
            }catch (Exception ex) {
                Console.WriteLine(ex.Source);
                return(base.FinishedLaunching(app, options));
            }
        }
示例#28
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            HtmlLabelRenderer.Initialize();
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true);
            LoadApplication(new App());

            if (Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.Lollipop)
            {
                // Set the navbar color
                Window.SetNavigationBarColor(Android.Graphics.Color.ParseColor("#303236"));
            }
        }
示例#29
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;


            base.OnCreate(savedInstanceState);

            HtmlLabelRenderer.Initialize();
            //MobileAds.Initialize(ApplicationContext, "ca-app-pub-9151374943028425~4762646673");



            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            Syncfusion.XForms.Android.PopupLayout.SfPopupLayoutRenderer.Init();

            LoadApplication(new App());
        }
示例#30
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            ZXing.Net.Mobile.Forms.Android.Platform.Init();
            ZXing.Mobile.MobileBarcodeScanner.Initialize(Application);

            var wifi = (WifiManager)ApplicationContext.GetSystemService(Context.WifiService);

            mlock = wifi.CreateMulticastLock("Zeroconf lock");

            HtmlLabelRenderer.Initialize();

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }