|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.leanengine.LeanEngine
public class LeanEngine
The main LeanEngine context class, containing application-wide data.
The init(android.content.Context, String) must be called before using any other LeanEngine client functions.
| Constructor Summary | |
|---|---|
LeanEngine()
|
|
| Method Summary | |
|---|---|
static android.net.Uri |
getFacebookLoginUri()
Returns the server authentication Uri which uses Facebook OAuth authentication service. |
static android.net.Uri |
getGoogleLoginUri()
Returns the server authentication Uri which uses Google OpenID authentication service. |
static android.net.Uri |
getHostURI()
Returns the Uri of the host, as initialized via init(Context, String) |
static android.net.Uri |
getOpenIdLoginUri(java.lang.String provider)
Returns the Uri of OpenID authentication service. |
static android.net.Uri |
getYahooLoginUri()
Returns the server authentication Uri which uses Yahoo OpenID authentication service. |
static void |
init(android.content.Context context,
java.lang.String host)
Initializes the LeanEngine client. |
protected static void |
saveAuthData(java.lang.String authToken)
Saves authentication token to app preferences. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LeanEngine()
| Method Detail |
|---|
public static void init(android.content.Context context,
java.lang.String host)
context - Android Context.host - The path to the host server, i.e. 'http://demo.lean-engine.com'
protected static void saveAuthData(java.lang.String authToken)
throws java.lang.IllegalStateException
authToken - Authentication token acquired via authentication flow.
java.lang.IllegalStateException - If LeanEngine was not initialized before first use,
via init(android.content.Context, String) method.
public static android.net.Uri getHostURI()
throws java.lang.IllegalStateException
init(Context, String)
java.lang.IllegalStateException - If LeanEngine was not initialized before first use,
via init(android.content.Context, String) method.public static android.net.Uri getFacebookLoginUri()
public static android.net.Uri getGoogleLoginUri()
public static android.net.Uri getYahooLoginUri()
public static android.net.Uri getOpenIdLoginUri(java.lang.String provider)
provider - The URL of the OpenID service.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||