public class

GoogleNowAuthState

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.search.GoogleNowAuthState

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
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 toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public String getAccessToken ()

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.

Returns
String

public String getAuthCode ()

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 see Cross-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().

Returns
String

public long getNextAllowedTimeMillis ()

If the request was rejected by the throttler then the next allowed request wall time (milliseconds since epoch) is returned.

Returns
long

public String toString ()

Returns
String