예제 #1
0
        protected override void OnCreate(Android.OS.Bundle bundle)
        {
            base.OnCreate(bundle);

            SocialAuth.Callback(this.Intent, bundle);

            Finish();
        }
예제 #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            // Init the things
            SocialAuth.Init();
            FacebookAuthProvider.Init(SocialKeys.FACEBOOK_APP_ID);

            //Register custom handlers
            SocialAuthManager.Current.RegisterProvider <FacebookAuthProvider>(ProviderType.Facebook);
            SocialAuthManager.Current.RegisterProvider <GoogleAuthProvider>(ProviderType.Google);
            SocialAuthManager.Current.RegisterProvider <TwitterSafariServicesAuthProvider>(ProviderType.Twitter);
            SocialAuthManager.Current.RegisterProvider <OAuth2SafariServicesProvider>("fitbit");

            LoadApplication(new App());

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

            base.OnCreate(bundle);

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

            // Init the things
            SocialAuth.Init(this.Application);
            FacebookAuthProvider.Init(SocialKeys.FACEBOOK_APP_ID);

            //Register custom handlers
            SocialAuthManager.Current.RegisterProvider <FacebookAuthProvider>(ProviderType.Facebook);
            SocialAuthManager.Current.RegisterProvider <GoogleAuthProvider>(ProviderType.Google);
            SocialAuthManager.Current.RegisterProvider <TwitterCustomTabsAuthProvider>(ProviderType.Twitter);
            SocialAuthManager.Current.RegisterProvider <OAuth2CustomTabsProvider>("fitbit");

            LoadApplication(new App());
        }