protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     PayCardsRecognizerService.Initialize(this);
     Xamarin.Essentials.Platform.Init(this, savedInstanceState);
     global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
     LoadApplication(new App());
 }
        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);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            global::ZXing.Net.Mobile.Forms.Android.Platform.Init();
            PayCardsRecognizerService.Initialize(this);

            LoadApplication(new App());
        }
Exemple #4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Instance = this;

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            FormsGoogleMaps.Init(this, savedInstanceState); // Google map.
            FormsGoogleMapsBindings.Init();
            PayCardsRecognizerService.Initialize(this);
            CachedImageRenderer.Init(false);
            UserDialogs.Init(this);
            Effects.Init();

            LoadApplication(new App());
        }