Java com.google.api.client.googleapis.extensions.android.gms.auth GoogleAccountCredential fields, constructors, methods, implement or subclass

Example usage for Java com.google.api.client.googleapis.extensions.android.gms.auth GoogleAccountCredential fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.api.client.googleapis.extensions.android.gms.auth GoogleAccountCredential.

The text is from its open source code.

Method

StringgetScope()
Returns the scope to use on GoogleAuthUtil#getToken .
AccountgetSelectedAccount()
Returns the selected Google account or null for none.
StringgetSelectedAccountName()
Returns the selected Google account name (e-mail address), for example "johndoe@gmail.com" , or null for none.
StringgetToken()
Returns an OAuth 2.0 access token.
voidinitialize(HttpRequest request)
IntentnewChooseAccountIntent()
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.
GoogleAccountCredentialsetBackOff(BackOff backOff)
Sets the back-off policy which is used when an I/O exception is thrown inside #getToken or null for none.
GoogleAccountCredentialsetSelectedAccount(Account selectedAccount)
Sets the selected Google Account or null for none.
GoogleAccountCredentialsetSelectedAccountName(String accountName)
Sets the selected Google account name (e-mail address) -- for example "johndoe@gmail.com" -- or null for none.
GoogleAccountCredentialusingAudience(Context context, String audience)
Sets the audience scope to use with Google Cloud Endpoints.
GoogleAccountCredentialusingOAuth2(Context context, Collection scopes)
Constructs a new instance using OAuth 2.0 scopes.