java.lang.Object | |
↳ | com.google.android.gms.auth.api.signin.GoogleSignInOptions |
GoogleSignInOptions is options used to configure the
GOOGLE_SIGN_IN_API
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GoogleSignInOptions.Builder |
Builder for GoogleSignInOptions ,
|
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | |||||||||||
DEFAULT_SIGN_IN | Default configuration for Google Sign In. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets an array of all the requested scopes.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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
silentSignIn(GoogleApiClient)
or getSignInIntent(GoogleApiClient)
. 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())