public final class LayarSDK
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
initialize(Context context,
java.lang.String oauthKey,
java.lang.String oauthSecret)
Initialize the Layar SDK with the specified OAuth credentials.
|
static void |
startLayarActivity(Context context)
Start the Layar Activity in scan mode.
|
static void |
startLayarActivity(Context context,
LayarSDKClient sdkClient)
Start the Layar Activity in scan mode with a custom LayarSDKClient
implementation.
|
static void |
startLayarActivity(Context context,
LayarSDKClient sdkClient,
java.lang.String layerName)
Start the Layar Activity with a custom LayarSDKClient implementation and
open the specified layer.
|
static void |
startLayarActivity(Context context,
java.lang.String layerName)
Start the Layar Activity and open the specified layer.
|
public static void initialize(Context context,
java.lang.String oauthKey,
java.lang.String oauthSecret)
The OAuth credentials are needed to authenticate the application using the Layar SDK, and are tied to your publisher account at Layar.
context - the Android context to use for hooking up the SDKoauthKey - the OAuth key to use for signing the requests to the Layar
serversoauthSecret - the OAuth secret to use for signing the requests to the Layar
serverspublic static void startLayarActivity(Context context)
Note: before this method is called you must have initialized the SDK
properly using the initialize method.
The scan view will only return content tied to your publisher account.
context - the Android Context to use for launching the Layar Activitypublic static void startLayarActivity(Context context,
java.lang.String layerName)
Note: before this method is called you must have initialized the SDK
properly using the initialize method.
The Layar SDK will only be able to access layers tied to your publisher account.
context - the Android Context to use for launching the Layar ActivitylayerName - the unique layer name of the layer to openpublic static void startLayarActivity(Context context,
LayarSDKClient sdkClient)
The LayarSDKClient will be used for event callbacks that allow
your application to have insight and control over certain parts of the
Layar SDK flow.
Note: before this method is called you must have initialized the SDK
properly using the initialize method.
The scan view will only return content tied to your publisher account.
context - the Android Context to use for launching the Layar ActivitysdkClient - the SDK client class that should receive event based callbacks
to control and customize the flowpublic static void startLayarActivity(Context context,
LayarSDKClient sdkClient,
java.lang.String layerName)
The LayarSDKClient will be used for event callbacks that allow
your application to have insight and control over certain parts of the
Layar SDK flow.
Note: before this method is called you must have initialized the SDK
properly using the initialize method.
The Layar SDK will only be able to access layers tied to your publisher account.
context - the Android Context to use for launching the Layar ActivitysdkClient - the SDK client class that should receive event based callbacks
to control and customize the flowlayerName - the unique layer name of the layer to open