AI2 Component
(Version nb184)
|
Public Member Functions | |
HttpResponse | execute (HttpUriRequest request) throws ClientProtocolException, IOException |
void | forgetAccountName () |
String | getAuthToken () throws ClientProtocolException |
An interface defining the functionality of ClientLoginHelper. ClientLoginHelper can only be loaded by an Eclair (or later) Dalvik VM, but this interface can be loaded by Cupcake and Donut.
Definition at line 23 of file IClientLoginHelper.java.
HttpResponse com.google.appinventor.components.runtime.util.IClientLoginHelper.execute | ( | HttpUriRequest | request | ) | throws ClientProtocolException, IOException |
Wraps an HttpClient.execute() to manage the authorization headers. This will add the proper Authorization header, and retry if the auth token has expired.
Implemented in com.google.appinventor.components.runtime.util.ClientLoginHelper.
void com.google.appinventor.components.runtime.util.IClientLoginHelper.forgetAccountName | ( | ) |
Forget about the account the user chose. The AccountChooser remembers (in shared prefs) the chosen account. Call this if you want to change the account this service is associated with.
Implemented in com.google.appinventor.components.runtime.util.ClientLoginHelper.
String com.google.appinventor.components.runtime.util.IClientLoginHelper.getAuthToken | ( | ) | throws ClientProtocolException |
Uses AccountManager to retrieve an accessToken that can be used to access Google APIs.
Added to support Texting Component. Allows the authToken to be requested by external objects.
Implemented in com.google.appinventor.components.runtime.util.ClientLoginHelper.