GoogleSignInOptions is options used to configure the GOOGLE_SIGN_IN_API.
| class | GoogleSignInOptions.Builder | Builder for GoogleSignInOptions,
|
|
| public static final Creator<GoogleSignInOptions> | CREATOR | |
| public static final GoogleSignInOptions | DEFAULT_GAMES_SIGN_IN | Default and recommended configuration for Games Sign In. |
| public static final GoogleSignInOptions | DEFAULT_SIGN_IN | Default configuration for Google Sign In. |
| boolean | |
| Scope[] |
getScopeArray()
Gets an array of all the requested scopes.
|
| int |
hashCode()
|
| void |
writeToParcel(Parcel out, int
flags)
|
Default and recommended configuration for Games Sign In.
new
GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN) and
further configure
requestServerAuthCode(String).new
GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN) and
further configure ERROR(/com.google.android.gms.games.Games.GamesOptions) via
addExtension(GoogleSignInOptionsExtension).To maximize chance of auto-sign-in, do NOT use
requestScopes(Scope, Scope...) to request additional scopes and do NOT use
requestIdToken(String) to request user's real Google identity assertion.
Default configuration for Google Sign In. You can get a stable user ID and basic
profile info back via
getId() after you trigger sign in from either ERROR(/GoogleSignInApi#silentSignIn) or ERROR(/GoogleSignInApi#getSignInIntent). If you require more
information for the sign in result, please build a configuration via new
GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)}.
Gets an array of all the requested scopes. If you use DEFAULT_SIGN_IN, this array will also include those scopes set by default in DEFAULT_SIGN_IN.
A usage of this method could be set the scopes for the contextual SignInButton.
E.g., signInButton.setScopes(googleSignInOptions.getScopeArray())