Beispiel #1
0
        public static void Initialize(Activity activity, Bundle bundle)
        {
            Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(activity, bundle);

            CrossAppShortcuts.Current.Init();

            SharpnadoInitializer.Initialize();

            GoogleClientManager.Initialize(activity);
            FacebookClientManager.Initialize(activity);

            Xamarin.Forms.DependencyService.Register <ToastNotification>();
            ToastNotification.Init(activity, new PlatformOptions()
            {
                SmallIconDrawable = Android.Resource.Drawable.IcDialogInfo
            });

            Xamarin.Essentials.Platform.Init(activity, bundle); // add this line to your code, it may also be called: bundle

            //Acr.UserDialogs.UserDialogs.Init(activity);

            CachedImageRenderer.Init(enableFastRenderer: true);
            CachedImageRenderer.InitImageViewHandler();
            //This forces the custom renderers to be used
            //Android.Glide.Forms.Init(activity, debug: false);

            // Override default BitmapDescriptorFactory by your implementation
            FormsGoogleMaps.Init(activity, bundle, new PlatformConfig
            {
                BitmapDescriptorFactory = new CachingNativeBitmapDescriptorFactory()
            });
        }
Beispiel #2
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MjQzNzAyQDMxMzgyZTMxMmUzMGlDWTJIVjZqZ2swTU1GOFdDaVhrQkhYMktvZjV0TjRtUldJWFN4akpKRlU9");
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            FacebookSdk.FullyInitialize();

            FacebookClientManager.Initialize(this);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            Xamarin.Forms.DependencyService.Register <StepCounter>();
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            await CrossMedia.Current.Initialize();


            Window.ClearFlags(WindowManagerFlags.TranslucentStatus);
            Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds);
            Window.SetStatusBarColor(Android.Graphics.Color.Rgb(0, 178, 200));
            LocalNotificationsImplementation.NotificationIconId = Resource.Drawable.SmartHealthIcon;
            StartStepService();
            LoadApplication(new App(new OAuth2Service()));
#if DEBUG
            PrintHashKey(this);
#endif
        }
Beispiel #3
0
        protected override async void OnCreate(Bundle savedInstanceState)
        {
            await TryToGetPermissions();

            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            FacebookClientManager.Initialize(this);

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



            CrossCurrentActivity.Current.Init(this, savedInstanceState);


            var width   = Resources.DisplayMetrics.WidthPixels;
            var height  = Resources.DisplayMetrics.HeightPixels;
            var density = Resources.DisplayMetrics.Density;

            App.ScreenWidth  = (width - 0.5f) / density;
            App.ScreenHeight = (height - 0.5f) / density;



            LoadApplication(new App());
        }
        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();
            Xamarin.FormsMaps.Init();
            ImageCircleRenderer.Init();
            Stormlion.PhotoBrowser.iOS.Platform.Init();
            DependencyService.Register <IMediaPickerService, MediaPickerService>();
            DependencyService.Register <INotificationBadge, NotificationBadgeImplement>();
            DependencyService.Register <IToastMessage, ToastMessage>();
            DependencyService.Register <OpenAppiOS>();
            DependencyService.Register <IAppVersionAndBuild>();
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init();

            // cards view
            CardsViewRenderer.Preserve();

            // fb share
            Plugin.Share.ShareImplementation.ExcludedUIActivityTypes.Clear();

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

            //fb login
            FacebookClientManager.Initialize(app, options);
            LoadApplication(new App());

            // firebase notification.
            FirebasePushNotificationManager.Initialize(options, true);
            FirebasePushNotificationManager.CurrentNotificationPresentationOption = UNNotificationPresentationOptions.Alert;
            return(base.FinishedLaunching(app, options));
        }
Beispiel #5
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            Window.SetStatusBarColor(Android.Graphics.Color.ParseColor("#607d8b"));

            base.OnCreate(bundle);
            //ZXing.Net.Mobile.Forms.Android.Platform.Init();
            Rg.Plugins.Popup.Popup.Init(this, bundle);

            //Facebook Plugin
            FacebookClientManager.Initialize(this);

            GoogleClientManager.Initialize(this);

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


            //Carousel view package inint
            //CarouselViewRenderer.Init();

            //Pancakeview package(gradients)
            PancakeViewRenderer.Init();

            //Location Services permission Android
            CrossCurrentActivity.Current.Init(this, bundle);

            Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle);

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

            base.OnCreate(savedInstanceState);
            FacebookClientManager.Initialize(this);

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

            //try
            //{
            //    PackageInfo info = Android.App.Application.Context.PackageManager.GetPackageInfo(Android.App.Application.Context.PackageName, PackageInfoFlags.Signatures);
            //    foreach (var signature in info.Signatures)
            //    {
            //        MessageDigest md = MessageDigest.GetInstance("SHA");
            //        md.Update(signature.ToByteArray());
            //        System.Diagnostics.Debug.WriteLine("##########KEY HASH################");
            //        System.Diagnostics.Debug.WriteLine(Convert.ToBase64String(md.Digest()));
            //    }
            //}
            //catch (NoSuchAlgorithmException e)
            //{
            //    System.Diagnostics.Debug.WriteLine(e);
            //}
            //catch (Exception e)
            //{
            //    System.Diagnostics.Debug.WriteLine(e);
            //}

            LoadApplication(new App());
        }
Beispiel #7
0
 protected override void OnCreate(Bundle bundle)
 {
     try
     {
         TabLayoutResource = Resource.Layout.Tabbar;
         ToolbarResource   = Resource.Layout.Toolbar;
         Rg.Plugins.Popup.Popup.Init(this, bundle);
         base.OnCreate(bundle);
         Rg.Plugins.Popup.Popup.Init(this, bundle);
         Helpers.Settings.CantidadSeguimientoPage  = 0;
         Helpers.Settings.CantidadCalificacionPage = 0;
         if (Intent.Extras != null)
         {
             foreach (var key in Intent.Extras.KeySet())
             {
                 if (key != null)
                 {
                     var value = Intent.Extras.GetString(key);
                     Log.Debug(TAG, "Key: {0} Value: {1}", key, value);
                 }
             }
         }
         FacebookClientManager.Initialize(this);
         global::Xamarin.Forms.Forms.Init(this, bundle);
         Plugin.CurrentActivity.CrossCurrentActivity.Current.Activity = this;
         Xamarin.FormsMaps.Init(this, bundle);
         TKGoogleMaps.Init(this, bundle);
         LoadApplication(new App());
     }
     catch (Exception ex)
     {
         var a = ex.Message;
         throw;
     }
 }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            FacebookClientManager.Initialize(this);

            Database.InitializeAsync()
            .ConfigureAwait(false)
            .GetAwaiter()
            .GetResult();

            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: true);

            var config = FFImageLoading.Config.Configuration.Default;

            config.ClearMemoryCacheOnOutOfMemory = true;
            ImageService.Instance.Initialize(config);

            base.OnCreate(savedInstanceState);

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

            var initialize = GetInitiliazeApp();

            LoadApplication(new App(initialize));

            //PushNotificationManager.ProcessIntent(this, Intent);
        }
Beispiel #9
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            base.Window.RequestFeature(WindowFeatures.ActionBar);
            // Name of the MainActivity theme you had there before.
            // Or you can use global::Android.Resource.Style.ThemeHoloLight
            base.SetTheme(Resource.Style.MainTheme);

            base.OnCreate(bundle);

            AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;
            TaskScheduler.UnobservedTaskException      += TaskSchedulerOnUnobservedTaskException;
            SharpnadoInitializer.Initialize();
            Forms.Init(this, bundle);
            ImageCircleRenderer.Init();
            CachedImageRenderer.Init(true);
            CarouselView.FormsPlugin.Android.CarouselViewRenderer.Init();
            Platform.Init(this, bundle);
            CrossCurrentActivity.Current.Init(this, bundle);
            PlotViewRenderer.Init();
            GoogleService.Init(this);
            XF.Material.Droid.Material.Init(this, bundle);
            FacebookClientManager.Initialize(this);
            Rg.Plugins.Popup.Popup.Init(this, bundle);
            var platformConfig = new PlatformConfig
            {
                BitmapDescriptorFactory = new CachingNativeBitmapDescriptorFactory()
            };

            FormsGoogleMaps.Init(this, bundle, platformConfig);
            FormsGoogleMapsBindings.Init();
            LoadApplication(new App(string.IsNullOrEmpty(Intent.GetStringExtra("message")) == false));
            HandleNotification();
        }
Beispiel #10
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            //Author:Omkar - Carousel View,FacebookClientManager Init
            Forms.SetFlags("CollectionView_Experimental");
            FacebookClientManager.Initialize(this);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            Plugin.InputKit.Platforms.Droid.Config.Init(this, savedInstanceState);
            Android.Gms.Ads.MobileAds.Initialize(ApplicationContext, "ca-app-pub-2380813622558954/8286981453");
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            //
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            //Image
            CrossCurrentActivity.Current.Init(this, savedInstanceState);

            //Author:Omkar - GoogleClientManager Init
            GoogleClientManager.Initialize(this);
            //

            LoadApplication(new App());
        }
        protected override async void OnCreate(Bundle bundle)
        {
            try
            {
                //TabLayoutResource = Resource.Layout.Tabbar;
                //ToolbarResource = Resource.Layout.Toolbar;

                base.OnCreate(bundle);

                //FacebookSdk.SdkInitialize(this.ApplicationContext);
                //AsNumAssemblyHelper.HoldAssembly();

                FacebookClientManager.Initialize(this);
                GoogleClientManager.Initialize(this);

                await CrossMedia.Current.Initialize();

                Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, bundle);

                Forms.Init(this, bundle);
                Xamarin.FormsMaps.Init(this, bundle);

                instance = this;

                LoadApplication(new App());
            }
            catch (Exception e)
            {
                Log.Debug("Error", e.Message);
            }
        }
Beispiel #12
0
 protected override void OnActivityResult(int requestCode, Result resultCode, Intent intent)
 {
     base.OnActivityResult(requestCode, resultCode, intent);
     //Facebook
     FacebookClientManager.OnActivityResult(requestCode, resultCode, intent);
     //Google
     GoogleClientManager.OnAuthCompleted(requestCode, resultCode, intent);
 }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            LoadApplication(new App());
            FacebookClientManager.Initialize(app, options);
            return(base.FinishedLaunching(app, options));
        }
Beispiel #14
0
        protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
        {
            if (ActivityResult != null)
            {
                ActivityResult(requestCode, resultCode, data);
            }

            FacebookClientManager.OnActivityResult(requestCode, resultCode, data);
        }
Beispiel #15
0
        public override bool OpenUrl(UIApplication app, NSUrl url, NSDictionary options)
        {
            // Convert NSUrl to Uri
            var uri = new Uri(url.AbsoluteString);

            // Load redirectUrl page
            AuthenticationState.Authenticator.OnPageLoading(uri);
            return(FacebookClientManager.OpenUrl(app, url, options));
        }
Beispiel #16
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(new iOSInitializer()));
     new SfBusyIndicatorRenderer();
     FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
     FacebookClientManager.Initialize(app, options);
     return(base.FinishedLaunching(app, options));
 }
Beispiel #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)
 {
     global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
     global::Xamarin.Forms.Forms.Init();
     Xamarin.FormsMaps.Init();
     LoadApplication(new App());
     FacebookClientManager.Initialize(app, options);
     return(base.FinishedLaunching(app, options));
 }
Beispiel #18
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            FacebookClientManager.Initialize(this);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Beispiel #19
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();
     global::Xamarin.Forms.Forms.Init();
     Plugin.InputKit.Platforms.iOS.Config.Init();
     LoadApplication(new App());
     FacebookClientManager.Initialize(app, options);
     Xamarin.FormsMaps.Init();
     return(base.FinishedLaunching(app, options));
 }
        public override bool OpenUrl(UIApplication app, NSUrl url, NSDictionary options)
        {
            switch (WelcomePage.LoginType)
            {
            case "facebook":
                return(FacebookClientManager.OpenUrl(app, url, options));

            case "google":
                return(GoogleClientManager.OnOpenUrl(app, url, options));
            }
            return(false);
        }
Beispiel #21
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();

            global::Xamarin.Forms.Forms.Init();
            FacebookClientManager.Initialize(app, options);
            Xamarin.FormsGoogleMaps.Init("AIzaSyAMJegrjXPGLYIXHKfR2KzLb5Bue5O7rF4");
            global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Beispiel #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)
        {
            global::Xamarin.Forms.Forms.Init();

            LoadApplication(new App(new iOSInitializer()));

            Xamarin.FormsGoogleMaps.Init("AIzaSyBOj66llhOkfTyNFH1XhpjOeyS1zJy85T4");

            FacebookClientManager.Initialize(app, options);

            return(base.FinishedLaunching(app, options));
        }
Beispiel #23
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            var density = Resources.DisplayMetrics.Density;

            App.screenWidth  = Resources.DisplayMetrics.WidthPixels / density;
            App.screenHeight = Resources.DisplayMetrics.HeightPixels / density;

            if (Xamarin.Forms.Device.Idiom == TargetIdiom.Phone)
            {
                App.screenHeight = (16 * App.screenWidth) / 9;
            }

            if (Xamarin.Forms.Device.Idiom == TargetIdiom.Tablet)
            {
                App.screenWidth = (9 * App.screenHeight) / 16;
            }

            try
            {
                PackageInfo info = Android.App.Application.Context.PackageManager.GetPackageInfo(Android.App.Application.Context.PackageName, PackageInfoFlags.Signatures);
                foreach (var signature in info.Signatures)
                {
                    MessageDigest md = MessageDigest.GetInstance("SHA");
                    md.Update(signature.ToByteArray());
                    System.Diagnostics.Debug.WriteLine("helloWorld");
                    System.Diagnostics.Debug.WriteLine(Convert.ToBase64String(md.Digest()));
                }
            }
            catch (NoSuchAlgorithmException e)
            {
                System.Diagnostics.Debug.WriteLine(e);
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine(e);
            }

            PrintHashKey(this);

            FacebookSdk.ApplicationId = "244197793511500";
            FacebookSdk.SdkInitialize(this);
            FacebookClientManager.Initialize(this);
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            FirebaseApp.InitializeApp(this);
            base.OnCreate(savedInstanceState);

            GoogleClientManager.Initialize(this);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Beispiel #24
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            CrossCurrentActivity.Current.Init(this, savedInstanceState);

            global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, savedInstanceState);

            FlowListView.Init();
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState); // add this line to your code, it may also be called: bundle
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            ContextMenuViewRenderer.Preserve();
            Plugin.InputKit.Platforms.Droid.Config.Init(this, savedInstanceState);
            FacebookClientManager.Initialize(this);
            string pagename = null;
            string data     = null;

            if (Intent.Extras != null)
            {
                pagename = Intent.GetStringExtra("PageName") ?? string.Empty;
                data     = Intent.GetStringExtra("Data") ?? string.Empty;
            }
            CardsViewRenderer.Preserve();

            Window window = ((MainActivity)Forms.Context).Window;

            window.AddFlags(WindowManagerFlags.KeepScreenOn);
            //if (Intent.Extras != null)
            //{
            //    if (!App.Current.Properties.ContainsKey("NotificationPage"))
            //    {
            //        pagename = null;
            //    }
            //    else
            //    {
            //        pagename= App.Current.Properties["NotificationPage"].ToString();
            //    }

            //    if (!App.Current.Properties.ContainsKey("notificationData"))
            //    {
            //        data = null;
            //    }
            //    else
            //    {
            //        data = App.Current.Properties["notificationData"].ToString();
            //    }
            //}
            LoadApplication(new App(pagename, data));
        }
Beispiel #25
0
        protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);

            //MultiMediaPickerService.SharedInstance.OnActivityResult(requestCode, resultCode, data);
            AddExperiencesPage._multiMediaPickerService.OnActivityResult(requestCode, resultCode, data);
            FacebookClientManager.OnActivityResult(requestCode, resultCode, data);
            if (requestCode == 1)
            {
                GoogleSignInResult result = Auth.GoogleSignInApi.GetSignInResultFromIntent(data);
                GoogleAuthenticator.Instance.OnAuthCompleted(result);
            }
        }
Beispiel #26
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            FacebookClientManager.Initialize(this);
            CrossCurrentActivity.Current.Init(this, bundle);
            global::Xamarin.Forms.Forms.Init(this, bundle);
            new SfBusyIndicatorRenderer();
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true);
            LoadApplication(new App(new AndroidInitializer()));
        }
Beispiel #27
0
        protected override void OnCreate(Bundle bundle)
        {
            //TabLayoutResource = Resource.Layout.Tabbar;
            //ToolbarResource = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            FacebookClientManager.Initialize(this);
            //Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, bundle);
            new SfBusyIndicatorRenderer();
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true);
            LoadApplication(new App(new AndroidInitializer()));
        }
Beispiel #28
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

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

            UserDialogs.Init(this);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            FacebookClientManager.Initialize(this);
            global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, savedInstanceState);
            Xamarin.FormsGoogleMaps.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Beispiel #29
0
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     Xamarin.FormsMaps.Init();
     new SfNumericTextBoxRenderer();
     SfTextInputLayoutRenderer.Init();
     LoadApplication(new App(new iOSInitializer()));
     SfMaskedEditRenderer.Init();
     FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
     new SfBusyIndicatorRenderer();
     new SfRotatorRenderer();
     FacebookClientManager.Initialize(app, options);
     return(base.FinishedLaunching(app, options));
 }
Beispiel #30
0
        /// <summary>
        ///     Called when [activity result].
        /// </summary>
        /// <param name="requestCode">The request code.</param>
        /// <param name="resultCode">The result code.</param>
        /// <param name="data">The data.</param>
        protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
        {
            base.OnActivityResult(requestCode, resultCode, data);
            FacebookClientManager.OnActivityResult(requestCode, resultCode, data);
            if (requestCode == 1)
            {
                var result = Auth.GoogleSignInApi.GetSignInResultFromIntent(data);
                GoogleService.Instance.OnAuthCompleted(result);
            }

            if (FacebookService.Instance != null)
            {
                FacebookService.Instance.CallbackManager.OnActivityResult(requestCode, (int)resultCode, data);
            }
        }