Class AN_GoogleSignInClient
A client for interacting with the Google Sign In API.
Inheritance
Namespace: SA.Android.GMS.Auth
Assembly: cs.temp.dll.dll
Syntax
public class AN_GoogleSignInClient : AN_LinkedObject
Methods
RevokeAccess(Action)
Revokes access given to the current application. Future sign-in attempts will require the user to re-consent to all requested scopes. Applications are required to provide users that are signed in with Google the ability to disconnect their Google account from the app. If the user deletes their account, you must delete the information that your app obtained from the Google APIs.
Declaration
public void RevokeAccess(Action callback)
Parameters
Type | Name | Description |
---|---|---|
Action | callback | Sign out flow callback. |
SignIn(Action<AN_GoogleSignInResult>)
Start the Google Sign In flow
Declaration
public void SignIn(Action<AN_GoogleSignInResult> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<AN_GoogleSignInResult> | callback | Sign In flow callback. |
SignOut(Action)
Signs out the current signed-in user if any. It also clears the account previously selected by the user and a future sign in attempt will require the user pick an account again.
Declaration
public void SignOut(Action callback)
Parameters
Type | Name | Description |
---|---|---|
Action | callback | Sign out flow callback. |
SilentSignIn(Action<AN_GoogleSignInResult>)
Returns the AN_GoogleSignInAccount information for the user who is signed in to this app. If no user is signed in, try to sign the user in without displaying any user interface.
Declaration
public void SilentSignIn(Action<AN_GoogleSignInResult> callback)
Parameters
Type | Name | Description |
---|---|---|
Action<AN_GoogleSignInResult> | callback | Sign In flow callback. |