Packagecom.tuarua.google.signin
Classpublic class GoogleSignInOptions
InheritanceGoogleSignInOptions Inheritance Object

Options for GoogleSignIn client.



Public Properties
 PropertyDefined By
  DEFAULT_GAMES_SIGN_IN : GoogleSignInOptions
[static] [read-only] Default and recommended configuration for Play Games Sign In.
GoogleSignInOptions
  DEFAULT_SIGN_IN : GoogleSignInOptions
[static] [read-only] Default configuration for Google Sign In.
GoogleSignInOptions
  requestEmail : Boolean
Specifies that email info is requested by your application.
GoogleSignInOptions
  requestId : Boolean
Specifies that user ID is requested by your application.
GoogleSignInOptions
  requestIdToken : Boolean = false
Specifies that an ID token for authenticated users is requested.
GoogleSignInOptions
  requestProfile : Boolean
Specifies that user's profile info is requested by your application.
GoogleSignInOptions
  requestServerAuthCode : Boolean = false
Specifies that offline access is requested.
GoogleSignInOptions
  scopes : Vector.<String>
[read-only] Specifies OAuth 2.0 scopes your application requests.
GoogleSignInOptions
  serverClientId : String
The client ID of the server that will need to get `serverAuthCode` or verify `idToken` On Android you can leave that unspecified, then string value of resource `default_web_client_id` will be used.
GoogleSignInOptions
Public Methods
 MethodDefined By
  
GoogleSignInOptions(scopes:Vector.<String> = null)
GoogleSignInOptions
  
addScope(scope:String):void
Add OAuth scope to requested
GoogleSignInOptions
  
hasScope(scope:String):Boolean
GoogleSignInOptions
Property Detail
DEFAULT_GAMES_SIGN_INproperty
DEFAULT_GAMES_SIGN_IN:GoogleSignInOptions  [read-only]

Default and recommended configuration for Play Games Sign In.


Implementation
    public static function get DEFAULT_GAMES_SIGN_IN():GoogleSignInOptions
DEFAULT_SIGN_INproperty 
DEFAULT_SIGN_IN:GoogleSignInOptions  [read-only]

Default configuration for Google Sign In.


Implementation
    public static function get DEFAULT_SIGN_IN():GoogleSignInOptions
requestEmailproperty 
requestEmail:Boolean

Specifies that email info is requested by your application. Will add `email` scope if set to true.


Implementation
    public function get requestEmail():Boolean
    public function set requestEmail(value:Boolean):void

See also

requestIdproperty 
requestId:Boolean

Specifies that user ID is requested by your application. Will add `openid` scope if set to true.


Implementation
    public function get requestId():Boolean
    public function set requestId(value:Boolean):void

See also

requestIdTokenproperty 
public var requestIdToken:Boolean = false

Specifies that an ID token for authenticated users is requested. Requesting an ID token requires that the server client ID be specified.

requestProfileproperty 
requestProfile:Boolean

Specifies that user's profile info is requested by your application. Will add `profile` scope if set to true.


Implementation
    public function get requestProfile():Boolean
    public function set requestProfile(value:Boolean):void
requestServerAuthCodeproperty 
public var requestServerAuthCode:Boolean = false

Specifies that offline access is requested. Requesting offline access requires that the server client ID be specified.

scopesproperty 
scopes:Vector.<String>  [read-only]

Specifies OAuth 2.0 scopes your application requests. You can modify requested scopes using addScope()


Implementation
    public function get scopes():Vector.<String>
serverClientIdproperty 
public var serverClientId:String

The client ID of the server that will need to get `serverAuthCode` or verify `idToken` On Android you can leave that unspecified, then string value of resource `default_web_client_id` will be used.

Constructor Detail
GoogleSignInOptions()Constructor
public function GoogleSignInOptions(scopes:Vector.<String> = null)



Parameters
scopes:Vector.<String> (default = null)
Method Detail
addScope()method
public function addScope(scope:String):void

Add OAuth scope to requested

Parameters

scope:String

hasScope()method 
public function hasScope(scope:String):Boolean

Parameters

scope:String

Returns
Boolean