示例#1
0
        protected override void OnElementChanged(ElementChangedEventArgs <Page> e)
        {
            base.OnElementChanged(e);

            // this is a ViewGroup - so should be able to load an AXML file and FindView<>
            global::Android.App.Activity activity = this.Context as global::Android.App.Activity;


            authenticator_page = (NXT.Views.GoogleAuthPage)base.Element;

            Authenticator            = authenticator_page.Authenticator;
            Authenticator.Completed += Authentication_Completed;
            Authenticator.Error     += Authentication_Error;

            global::Android.Content.Intent ui_object = Authenticator.GetUI(activity);

            activity.StartActivity(ui_object);

            return;
        }
 public Authenticator(Xamarin.Auth.Authenticator authenticator)
 {
     AuthenticationPage       = new AuthenticatorPage(authenticator);
     authenticator.Completed += OnAuthCompleted;
     authenticator.Error     += OnAuthError;
 }