GoogleNowAuthState
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Method Summary
String
|
getAccessToken()
Returns the OAuth access token or null if access token is unavailable.
|
String
|
getAuthCode()
Returns the OAuth authorization code or null if authorization code is
unavailable.
|
long |
getNextAllowedTimeMillis()
If the request was rejected by the throttler then the next allowed request wall
time (milliseconds since epoch) is returned.
|
String
|
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
finalClass<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcelarg0,
int arg1)
|
Public Methods
publicStringgetAccessToken()
Returns the OAuth access token or null if access token is unavailable.
Access token is made available instead of auth code when an authorization code was
already issued for the web app client ID. This access token may be used with the Now
API or it can be revoked to subsequently obtain a new auth code.
publicStringgetAuthCode()
Returns the OAuth authorization code or null if authorization code is
unavailable.
The authorization code may be sent to the web application where it can be sent along
with the client secret to the Google OAuth server to obtain a pair of refresh and
access tokens. For details seeCross-client Identity.
If an authorization code was already issued for the web app client ID then an
authorization code will not be available and an access token will be made available
instead. See
getAccessToken()
.
public longgetNextAllowedTimeMillis()
If the request was rejected by the throttler then the next allowed request wall time
(milliseconds since epoch) is returned.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License,and code samples are licensed under theApache 2.0 License.For details, see theGoogle Developers Site Policies.Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-02-11 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label": "Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label": "Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label": "Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label": "Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label": "Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label": "Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label": "Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label": "Other"
}]
{ "lastModified": "Last updated 2021-02-11 UTC." }
[[[ "Easy to understand", "easyToUnderstand", "thumb-up" ],[ "Solved my problem", "solvedMyProblem", "thumb-up" ],[ "Other", "otherUp", "thumb-up" ]],[[ "Missing the information I need", "missingTheInformationINeed", "thumb-down" ],[ "Too complicated / too many steps", "tooComplicatedTooManySteps", "thumb-down" ],[ "Out of date", "outOfDate", "thumb-down" ],[ "Samples / code issue", "samplesCodeIssue", "thumb-down" ],[ "Other", "otherDown", "thumb-down" ]],[ "Last updated 2021-02-11 UTC." ]]