Exemple #1
0
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing)
                {
                    if (frame != null)
                    {
                        frame.NavigationFailed  -= Frame_NavigationFailed;
                        frame.Navigated         -= Frame_Navigated;
                        frame.Navigating        -= Frame_Navigating;
                        frame.NavigationStopped -= Frame_NavigationStopped;
                        frame = null;
                    }

                    if (authenticator != null)
                    {
                        authenticator.Completed -= Authenticator_Completed;
                        authenticator.Error     -= Authenticator_Error;
                        authenticator            = null;
                    }
                }
            }
            catch (Exception ex)
            {
                throw new Xamarin.Auth.Compat.AuthException("UWP Dispose");
            }

            base.Dispose(disposing);
        }
Exemple #2
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 = (AuthenticatorPage)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;
        }
Exemple #3
0
 public AuthenticatorPage(Xamarin.Auth.Compat.Authenticator a)
 {
 }