Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

(Xamarin.Auth) Sign-in On Authentication Cancelled

$
0
0

Hi there, I'm new to Xamarin.
I want to know when user cancelled the process. (the back button from the embedded browser).

//This section opens an embedded browser
Android.Content.Intent intent = GoogleOAuthManager.Authenticator.GetUI((Android.App.Activity)Forms.Context);
Forms.Context.StartActivity(intent);

//This checks for authorization.
GoogleOAuthManager.Authenticator.Completed += OnAuthenticatorCompleted;

The Completed event fired successfully.
In Xamarin Auth, there's an OnCancelled method.

namespace Xamarin.Auth
{
    public abstract class Authenticator
    {
        public Authenticator();
    ...
    public void OnCancelled();
    ...
}}

It's not a virtual method, so I can't override it?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>