public abstract class StartupConfiguration extends Object
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 String |
getDefaultOrigin() |
String |
getKey()
Deprecated.
|
String |
getLicenseKey()
Get the current Wikitude SDK licence key.
|
CameraSettings.Camera2SupportLevel |
getMinCamera2SupportLevel() |
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 true. |
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
and with set minimum camera2 support level or higher.
By default the Wikitude SDK will use camera2 on devices with Android 5.1+ and a camera2 support level of CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_FULL |
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 value is only used on 64-Bit devices as those are generally fast enough to handle the additional computations for larger frames. |
void |
setLicenseKey(String licenseKey)
Set your Wikitude SDK licence key.
|
void |
setMinCamera2SupportLevel(CameraSettings.Camera2SupportLevel minCamera2SupportLevel)
Sets the minimum camera2 support level a device must have for the Wikitude SDK to use camera2.
|
void |
setOrigin(String origin)
Use this only if you are implementing your OWN Wikitude Plugin for Cordova, Titanium etc.
|
protected String mOrigin
public String getLicenseKey()
public void setLicenseKey(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)
CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_FULL
camera2Enabled
- If camera2 should be enabled.setMinCamera2SupportLevel(CameraSettings.Camera2SupportLevel)
public CameraSettings.Camera2SupportLevel getMinCamera2SupportLevel()
public void setMinCamera2SupportLevel(CameraSettings.Camera2SupportLevel minCamera2SupportLevel)
CameraSettings.Camera2SupportLevel#FULL
. This value should only be changed if the Application is running
on a specific set of devices known to have a good camera2 implementation since it could lead to wrong camera frames
(e.g. OnePlus One, Samsung Galaxy Tab A 10.1) or other issues.public String getOrigin()
public void setOrigin(String origin)
origin
- one of the predefined origin strings@Deprecated public String getKey()
getLicenseKey()
instead. public abstract boolean isValidOrigin()
public abstract String getDefaultOrigin()