Result returned from a request to authorize
| public static final Creator<AuthorizationResult> | CREATOR |
|
AuthorizationResult(String
serverAuthCode, String accessToken,
String
idToken, List<String>
grantedScopes,
GoogleSignInAccount googleSignInAccount, PendingIntent
pendingIntent)
|
| boolean | |
| String |
getAccessToken()
Returns the access token.
|
| List<String> |
getGrantedScopes()
Returns the list of scopes that user had granted access to.
|
| PendingIntent |
getPendingIntent()
Returns the
PendingIntent
that can be used to launch the authorization flow.
|
| String |
getServerAuthCode()
Returns the server authorization code that can be exchanged by the server for a
refresh token.
|
| boolean |
hasResolution()
Returns
true if this result contains a resolution that needs to be
launched.
|
| int |
hashCode()
|
| GoogleSignInAccount |
toGoogleSignInAccount()
Converts this result to an equivalent
GoogleSignInAccount object, if the authorization operation was
successful in returning tokens.
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Returns the access token.
Returns the PendingIntent
that can be used to launch the authorization flow.
Returns the server authorization code that can be exchanged by the server for a refresh token.
Returns true if this result contains a resolution that needs to be
launched.
Please see
getPendingIntent() for additional context.
Converts this result to an equivalent GoogleSignInAccount
object, if the authorization operation was successful in returning tokens. If, instead,
a PendingIntent
was provided to launch the authorization flow, this will return null.
GoogleSignInAccount
object with the same data contained in this result.