Packagecom.tuarua.google
Classpublic final class GoogleSignIn
InheritanceGoogleSignIn Inheritance flash.events.EventDispatcher

It is possible to configure GoogleSignIn before use with options property.
     // 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

GoogleSignInOptions


Public Properties
 PropertyDefined By
  options : GoogleSignInOptions
[static] Configuration for GoogleSignIn client.
GoogleSignIn
Public Methods
 MethodDefined By
  
dispose():void
[static] Disposes the ANE
GoogleSignIn
  
handle(url:String, sourceApplication:String):void
GoogleSignIn
  
Revokes access given to the current application.
GoogleSignIn
  
[static] The ANE instance.
GoogleSignIn
  
signIn():void
Starts the sign-in process.
GoogleSignIn
  
Attempts to sign in a previously authenticated user without interaction.
GoogleSignIn
  
signOut():void
Signs out the current signed-in user if any.
GoogleSignIn
Property Detail
optionsproperty
options:GoogleSignInOptions

Configuration for GoogleSignIn client. Set it before access GoogleSignIn api if needed.


Implementation
    public static function get options():GoogleSignInOptions
    public static function set options(value:GoogleSignInOptions):void
Method Detail
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 
public static function shared():GoogleSignIn

The ANE instance.

Returns
GoogleSignIn
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.