AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.IClientLoginHelper Interface Reference
Inheritance diagram for com.google.appinventor.components.runtime.util.IClientLoginHelper:
com.google.appinventor.components.runtime.util.ClientLoginHelper

Public Member Functions

HttpResponse execute (HttpUriRequest request) throws ClientProtocolException, IOException
 
void forgetAccountName ()
 
String getAuthToken () throws ClientProtocolException
 

Detailed Description

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.

Author
lizlo.nosp@m.oney.nosp@m.@goog.nosp@m.le.c.nosp@m.om (Liz Looney)

Definition at line 23 of file IClientLoginHelper.java.

Member Function Documentation

◆ execute()

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.

◆ forgetAccountName()

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.

◆ getAuthToken()

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.


The documentation for this interface was generated from the following file: