Example usage for Java com.google.api.client.googleapis.extensions.android.gms.auth GoogleAccountCredential fields, constructors, methods, implement or subclass
The text is from its open source code.
String | getScope() Returns the scope to use on GoogleAuthUtil#getToken . |
Account | getSelectedAccount() Returns the selected Google account or null for none. |
String | getSelectedAccountName() Returns the selected Google account name (e-mail address), for example "johndoe@gmail.com" , or null for none. |
String | getToken() Returns an OAuth 2.0 access token. |
void | initialize(HttpRequest request) |
Intent | newChooseAccountIntent() Returns an intent to show the user to select a Google account, or create a new one if there are none on the device yet. |
GoogleAccountCredential | setBackOff(BackOff backOff) Sets the back-off policy which is used when an I/O exception is thrown inside #getToken or null for none. |
GoogleAccountCredential | setSelectedAccount(Account selectedAccount) Sets the selected Google Account or null for none. |
GoogleAccountCredential | setSelectedAccountName(String accountName) Sets the selected Google account name (e-mail address) -- for example "johndoe@gmail.com" -- or null for none. |
GoogleAccountCredential | usingAudience(Context context, String audience) Sets the audience scope to use with Google Cloud Endpoints. |
GoogleAccountCredential | usingOAuth2(Context context, Collection Constructs a new instance using OAuth 2.0 scopes. |