java.lang.Object | |
↳ | com.google.android.gms.auth.api.signin.GoogleSignInAccount |
Class that holds the basic account information of the signed in Google user.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the display name of the signed in user.
| |||||||||||
Gets the email address of the signed in user.
| |||||||||||
Gets all scopes that have been granted to your application.
| |||||||||||
Gets the signed in user's Google id.
| |||||||||||
Gets an ID token that you can send to your server.
| |||||||||||
Gets the photo url of the signed in user.
| |||||||||||
Gets a one-time server auth code to send to your web server which can be exchanged for access
token and sometimes refresh token.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Gets the display name of the signed in user.
requestProfile()
is configured.
Gets the email address of the signed in user.
Applications should not key users by email address since a Google account's email address can
change. Use getId()
as a key instead.
requestEmail()
is configured.
Gets all scopes that have been granted to your application.
This can be a larger set than what you have requested via GoogleSignInOptions
. We
recommend apps requesting minimum scopes at user sign in time and later requesting additional
scopes incrementally when user is using a certain feature. For those apps following this
incremental auth practice, they can use the returned scope set to determine all authorized
scopes (across platforms and app re-installs) to turn on bonus features accordingly. The
returned set can also be larger due to other scope handling logic.
Gets the signed in user's Google id.
This is the preferred unique key to use for a user record.
Gets an ID token that you can send to your server.
requestIdToken(String)
is configured.
Gets the photo url of the signed in user.
requestProfile()
is configured and user does have a Google+
profile picture.
Gets a one-time server auth code to send to your web server which can be exchanged for access token and sometimes refresh token. for details.
requestServerAuthCode(String)
is configured.