public final class RequirementId
extends java.lang.Enum
Enumerates the checked requirements for the Gini Vision Library.
Modifier and Type | Field and Description |
---|---|
static RequirementId |
CAMERA
A back-facing camera needs to be present.
|
static RequirementId |
CAMERA_FLASH
The camera on phones must support always-on flash mode.
|
static RequirementId |
CAMERA_FOCUS
The camera must support auto focus mode.
|
static RequirementId |
CAMERA_PERMISSION
Permission to access the camera is required.
|
static RequirementId |
CAMERA_RESOLUTION
The camera must support a preview resolution and a picture resolution higher than 8MP.
|
static RequirementId |
DEVICE_MEMORY
The device must have sufficient memory for in-memory bitmap handling, compression and jpeg decompression.
|
Modifier and Type | Method and Description |
---|---|
static RequirementId |
valueOf(java.lang.String name) |
static RequirementId[] |
values() |
public static final RequirementId CAMERA_PERMISSION
Permission to access the camera is required.
On Android before version 6.0 the camera permission must be declared in the manifest.
On Android 6.0 and later in addition to the manifest declaration the camera permission must be granted by the user during run-time.
On Android 6.0 and later you need to ask the user for the camera permission before you check the requirements.
Camera permission is required for checking the other requirements.
public static final RequirementId CAMERA
A back-facing camera needs to be present.
public static final RequirementId CAMERA_RESOLUTION
The camera must support a preview resolution and a picture resolution higher than 8MP.
public static final RequirementId CAMERA_FLASH
The camera on phones must support always-on flash mode. Not required for tablets.
public static final RequirementId CAMERA_FOCUS
The camera must support auto focus mode.
public static final RequirementId DEVICE_MEMORY
The device must have sufficient memory for in-memory bitmap handling, compression and jpeg decompression.
public static RequirementId[] values()
public static RequirementId valueOf(java.lang.String name)