private void SharedInstance_Disconnected(object sender, SignInDelegateEventArgs e)
 {
     if (e.Error != null)
     {
         OnError?.Invoke(this, new Error()
         {
             Message = e.Error.LocalizedDescription
         });
     }
     else
     {
         OnRevoked?.Invoke(this, new Data.GoogleUser()
         {
             Base            = e.User,
             Id              = e.User?.UserId,
             AuthCode        = "",
             DisplayName     = e.User?.Profile?.Name,
             Email           = e.User?.Profile?.Email,
             FamilyName      = e.User?.Profile?.FamilyName,
             GivenName       = e.User?.Profile?.GivenName,
             GrantedScopes   = new string[] { },
             IdToken         = e.User?.Authentication?.IdToken,
             PhotoUrl        = "",
             RequestedScopes = new string[] { }
         });
     }
 }
Example #2
0
 public void Revoke()
 {
     googleSignInClient.RevokeAccess().AddOnCompleteListener(Activity, new CompleteHandler(a => OnRevoked?.Invoke(this, null)));
 }