| Package | com.tuarua.google.signin |
| Class | public class GoogleSignInOptions |
| Inheritance | GoogleSignInOptions Object |
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
GoogleSignInOptions(scopes:Vector.<String> = null) | GoogleSignInOptions | ||
addScope(scope:String):void
Add OAuth scope to requested
| GoogleSignInOptions | ||
hasScope(scope:String):Boolean | GoogleSignInOptions | ||
| DEFAULT_GAMES_SIGN_IN | property |
DEFAULT_GAMES_SIGN_IN:GoogleSignInOptions [read-only] Default and recommended configuration for Play Games Sign In.
public static function get DEFAULT_GAMES_SIGN_IN():GoogleSignInOptions| DEFAULT_SIGN_IN | property |
DEFAULT_SIGN_IN:GoogleSignInOptions [read-only] Default configuration for Google Sign In.
public static function get DEFAULT_SIGN_IN():GoogleSignInOptions| requestEmail | property |
requestEmail:BooleanSpecifies that email info is requested by your application. Will add `email` scope if set to true.
public function get requestEmail():Boolean public function set requestEmail(value:Boolean):voidSee also
| requestId | property |
requestId:BooleanSpecifies that user ID is requested by your application. Will add `openid` scope if set to true.
public function get requestId():Boolean public function set requestId(value:Boolean):voidSee also
| requestIdToken | property |
public var requestIdToken:Boolean = falseSpecifies that an ID token for authenticated users is requested. Requesting an ID token requires that the server client ID be specified.
| requestProfile | property |
requestProfile:BooleanSpecifies that user's profile info is requested by your application. Will add `profile` scope if set to true.
public function get requestProfile():Boolean public function set requestProfile(value:Boolean):void| requestServerAuthCode | property |
public var requestServerAuthCode:Boolean = falseSpecifies that offline access is requested. Requesting offline access requires that the server client ID be specified.
| scopes | property |
scopes:Vector.<String> [read-only] Specifies OAuth 2.0 scopes your application requests. You can modify requested scopes using addScope()
public function get scopes():Vector.<String>| serverClientId | property |
public var serverClientId:StringThe 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 | () | Constructor |
public function GoogleSignInOptions(scopes:Vector.<String> = null)scopes:Vector.<String> (default = null) |
| addScope | () | method |
public function addScope(scope:String):voidAdd OAuth scope to requested
Parameters
scope:String |
| hasScope | () | method |
public function hasScope(scope:String):BooleanParameters
scope:String |
Boolean |