Package com.regula.facesdk.enums
Enum LivenessErrorCode
- java.lang.Object
-
- java.lang.Enum<LivenessErrorCode>
-
- com.regula.facesdk.enums.LivenessErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LivenessErrorCode>
public enum LivenessErrorCode extends java.lang.Enum<LivenessErrorCode>
Error codes for the LivenessResponse errors.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description API_CALL_FAILED
Liveness API call failed due to networking error or backend internal error.APPLICATION_INACTIVE
Client application did enter the background, liveness process interrupted.CAMERA_NO_PERMISSION
Application does not have camera permission.CAMERA_NOT_AVAILABLE
Device has no available camera.CANCELLED
User cancelled liveness processing.CONTEXT_IS_NULL
Application context is nullIN_PROGRESS_ALREADY
Liveness process already in progressNO_LICENSE
There is no valid license on the service.NOT_INITIALIZED
FaceSDK Core is not initializedPROCESSING_FAILED
Processing failed.PROCESSING_FRAME_FAILED
Failed when Core cannot recognize framePROCESSING_TIMEOUT
Processing finished by timeout.SESSION_START_FAILED
Failed when Core could not start new sessionZOOM_NOT_SUPPORTED
The camera on the current device doesn't support zoom change
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LivenessErrorCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LivenessErrorCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_INITIALIZED
public static final LivenessErrorCode NOT_INITIALIZED
FaceSDK Core is not initialized
-
NO_LICENSE
public static final LivenessErrorCode NO_LICENSE
There is no valid license on the service.
-
API_CALL_FAILED
public static final LivenessErrorCode API_CALL_FAILED
Liveness API call failed due to networking error or backend internal error.
-
SESSION_START_FAILED
public static final LivenessErrorCode SESSION_START_FAILED
Failed when Core could not start new session
-
CANCELLED
public static final LivenessErrorCode CANCELLED
User cancelled liveness processing.
-
PROCESSING_TIMEOUT
public static final LivenessErrorCode PROCESSING_TIMEOUT
Processing finished by timeout.
-
PROCESSING_FAILED
public static final LivenessErrorCode PROCESSING_FAILED
Processing failed.
-
PROCESSING_FRAME_FAILED
public static final LivenessErrorCode PROCESSING_FRAME_FAILED
Failed when Core cannot recognize frame
-
APPLICATION_INACTIVE
public static final LivenessErrorCode APPLICATION_INACTIVE
Client application did enter the background, liveness process interrupted.
-
CONTEXT_IS_NULL
public static final LivenessErrorCode CONTEXT_IS_NULL
Application context is null
-
IN_PROGRESS_ALREADY
public static final LivenessErrorCode IN_PROGRESS_ALREADY
Liveness process already in progress
-
ZOOM_NOT_SUPPORTED
public static final LivenessErrorCode ZOOM_NOT_SUPPORTED
The camera on the current device doesn't support zoom change
-
CAMERA_NO_PERMISSION
public static final LivenessErrorCode CAMERA_NO_PERMISSION
Application does not have camera permission.
-
CAMERA_NOT_AVAILABLE
public static final LivenessErrorCode CAMERA_NOT_AVAILABLE
Device has no available camera.
-
-
Method Detail
-
values
public static LivenessErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LivenessErrorCode c : LivenessErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LivenessErrorCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-