public abstract class StartupConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mOrigin |
Constructor and Description |
---|
StartupConfiguration() |
Modifier and Type | Method and Description |
---|---|
CameraSettings.CameraFocusMode |
getCameraFocusMode()
Get which camera focus mode should be used by the Wikitude SDK for the camera startup.
|
float |
getCameraManualFocusDistance()
Get the initial camera manual focus distance in %.
0 = Shortest distance from frontmost surface of the lens that can be brought into sharp focus. 1 = Infinity Focus. |
CameraSettings.CameraPosition |
getCameraPosition()
Get which camera position should be used by the Wikitude SDK for the camera startup.
|
CameraSettings.CameraResolution |
getCameraResolution()
Get the Size of the camera preview in pixel.
|
abstract java.lang.String |
getDefaultOrigin() |
java.lang.String |
getKey()
Deprecated.
|
java.lang.String |
getLicenseKey()
Get the current Wikitude SDK licence key.
|
java.lang.String |
getOrigin()
Get the Origin of the application
|
boolean |
isCamera2Enabled()
Get if the wikitude sdk may use the android camera2 api on devices with android version 5.1 or higher.
The default value is false. |
abstract boolean |
isValidOrigin() |
void |
setCamera2Enabled(boolean camera2Enabled)
Sets if the wikitude sdk may use the android camera2 api on devices with android version 5.1 or higher.
The default value is false. |
void |
setCameraFocusMode(CameraSettings.CameraFocusMode cameraFocusMode)
Get which camera focus mode should be used by the Wikitude SDK for the camera startup.
|
void |
setCameraManualFocusDistance(float cameraFocusDistance)
Set the initial camera manual focus distance in %.
0 = Shortest distance from frontmost surface of the lens that can be brought into sharp focus. 1 = Infinity Focus. If setting the focus distance is not supported by the camera this value will be internally set to 1. |
void |
setCameraPosition(CameraSettings.CameraPosition cameraPosition)
Set which camera position should be used by the Wikitude SDK for the camera startup.
|
void |
setCameraResolution(CameraSettings.CameraResolution cameraResolution)
Sets which resolution the camera should use.
The wikitude sdk will choose a resolution closest to the given size. It is not guaranteed that the chosen size is used since some android devices may not support it. This is CameraSettings.CameraResolution#SD_640x480 by default. |
void |
setLicenseKey(java.lang.String licenseKey)
Set your Wikitude SDK licence key.
|
void |
setOrigin(java.lang.String origin)
Use this only if you are implementing your OWN Wikitude Plugin for Cordova, Titanium etc.
|
public java.lang.String getLicenseKey()
public void setLicenseKey(java.lang.String licenseKey)
licenseKey
- new licence keypublic CameraSettings.CameraPosition getCameraPosition()
CameraSettings.CameraPosition
public void setCameraPosition(CameraSettings.CameraPosition cameraPosition)
cameraPosition
- new camera position.CameraSettings.CameraPosition
public CameraSettings.CameraFocusMode getCameraFocusMode()
CameraSettings.CameraFocusMode
public void setCameraFocusMode(CameraSettings.CameraFocusMode cameraFocusMode)
cameraFocusMode
- new camera focus modeCameraSettings.CameraFocusMode
public float getCameraManualFocusDistance()
public void setCameraManualFocusDistance(float cameraFocusDistance)
cameraFocusDistance
- manual focus distance in %.public CameraSettings.CameraResolution getCameraResolution()
public void setCameraResolution(CameraSettings.CameraResolution cameraResolution)
CameraSettings.CameraResolution#SD_640x480
by default.cameraResolution
- Resolution of the camera.CameraSettings.CameraResolution
public boolean isCamera2Enabled()
public void setCamera2Enabled(boolean camera2Enabled)
camera2Enabled
- If camera2 should be enabled.public java.lang.String getOrigin()
public void setOrigin(java.lang.String origin)
origin
- one of the predefined origin strings@Deprecated public java.lang.String getKey()
getLicenseKey()
instead. public abstract boolean isValidOrigin()
public abstract java.lang.String getDefaultOrigin()