public class StartupConfiguration
extends java.lang.Object
Configuration object class for the ARchitect SDK
This class encapsulates information needed for internal initialization of the
Wikitude SDK.
Set which features are required by your AR experience (Geo / 2D Tracking or
both) and which camera should be used. (front or back)
Note: The Origin Strings are used by our Phonegap/Xamarin/Titanium Plugins,
you probably do not need to use them.
Modifier and Type | Class and Description |
---|---|
static class |
StartupConfiguration.CameraPosition
Use the CameraPosition type to define which camera should be used.
|
static interface |
StartupConfiguration.Features
Helper class to define the required features bitmap.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ORIGIN_DEFAULT |
static java.lang.String |
ORIGIN_PHONEGAP |
static java.lang.String |
ORIGIN_TITANIUM |
static java.lang.String |
ORIGIN_XAMARIN |
Constructor and Description |
---|
StartupConfiguration(java.lang.String key)
Constructor for the Architect configuration object
Minimal configuration leave all configuration defaulted |
StartupConfiguration(java.lang.String key,
int features)
Constructor for the Architect configuration object
Define which features are required by your AR experience, leave other configurations defaulted. |
StartupConfiguration(java.lang.String key,
int features,
StartupConfiguration.CameraPosition cameraMode)
Constructor for the Architect configuration object
Define which features are required by your AR experience, and which camera (front or back) should be used. |
Modifier and Type | Method and Description |
---|---|
StartupConfiguration.CameraPosition |
getCameraMode()
Get the camera mode of the application
|
int |
getFeatures()
Get the required Features of the application
|
java.lang.String |
getKey()
Get the Api-key of the application
|
protected java.lang.String |
getOrigin()
Get the Origin of the application
|
void |
setOrigin(java.lang.String origin)
Use this only if you are implementing your OWN Wikitude Plugin for Cordova, Titanium etc.
|
public static final java.lang.String ORIGIN_PHONEGAP
public static final java.lang.String ORIGIN_TITANIUM
public static final java.lang.String ORIGIN_XAMARIN
public static final java.lang.String ORIGIN_DEFAULT
public StartupConfiguration(java.lang.String key)
key
- API key for SDKpublic StartupConfiguration(java.lang.String key, int features)
key
- API key for SDKfeatures
- BitMap which defines if Geo, 2DTracking or both are requiredpublic StartupConfiguration(java.lang.String key, int features, StartupConfiguration.CameraPosition cameraMode)
key
- API key for SDKfeatures
- BitMap which defines if Geo, 2DTracking or both are requiredcameraMode
- Defines if front or back camera should be usedprotected java.lang.String getOrigin()
public void setOrigin(java.lang.String origin)
one
- of the predefined origin stringspublic java.lang.String getKey()
public int getFeatures()
public StartupConfiguration.CameraPosition getCameraMode()