Package | com.tuarua.google |
Class | public final class GoogleSignIn |
Inheritance | GoogleSignIn ![]() |
// To sign into Play Games insted of regular Google account // Note: officially supported on Android only GoogleSignIn.options = GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN; GoogleSignIn.shared().signIn();
See also
Property | Defined By | ||
---|---|---|---|
options : GoogleSignInOptions [static]
Configuration for GoogleSignIn client. | GoogleSignIn |
Method | Defined By | ||
---|---|---|---|
dispose():void [static] Disposes the ANE | GoogleSignIn | ||
handle(url:String, sourceApplication:String):void | GoogleSignIn | ||
revokeAccess():void Revokes access given to the current application. | GoogleSignIn | ||
[static] The ANE instance. | GoogleSignIn | ||
signIn():void Starts the sign-in process. | GoogleSignIn | ||
signInSilently():void Attempts to sign in a previously authenticated user without interaction. | GoogleSignIn | ||
signOut():void Signs out the current signed-in user if any. | GoogleSignIn |
options | property |
options:GoogleSignInOptions
Configuration for GoogleSignIn client. Set it before access GoogleSignIn api if needed.
public static function get options():GoogleSignInOptions
public static function set options(value:GoogleSignInOptions):void
dispose | () | method |
public static function dispose():void
Disposes the ANE
handle | () | method |
public function handle(url:String, sourceApplication:String):void
Parameters
url:String | |
sourceApplication:String |
revokeAccess | () | method |
public function revokeAccess():void
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.
shared | () | method |
signIn | () | method |
public function signIn():void
Starts the sign-in process. Note that this method should not be called when the app is starting up.
signInSilently | () | method |
public function signInSilently():void
Attempts to sign in a previously authenticated user without interaction.
signOut | () | method |
public function signOut():void
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.