LivenessError
enum LivenessError : UInt, @unchecked Sendable
Reasons for failure of the liveness analysis.
-
Indicates no failure.
Declaration
Swift
case none = 0
-
Indicates mouth region is not visible
Declaration
Swift
case faceMouthRegionNotVisible = 1
-
Indicates eye region is not visible
Declaration
Swift
case faceEyeRegionNotVisible = 2
-
Indicates image is too blurry
Declaration
Swift
case excessiveImageBlurDetected = 3
-
Indicates image is too bright
Declaration
Swift
case excessiveFaceBrightness = 4
-
Indicates a mask has been detected
Declaration
Swift
case faceWithMaskDetected = 5
-
Indicates a timeout failure
Declaration
Swift
case timedOut = 6
-
Indicates environment not supported failure
Declaration
Swift
case environmentNotSupported = 7
-
Indicates face tracking failure
Declaration
Swift
case faceTrackingFailed = 8
-
Indicates service response code between 401 and 409 is returned
Declaration
Swift
case unexpectedClientError = 9
-
Indicates service response code equal to or greater than 500 is returned
Declaration
Swift
case unexpectedServerError = 10
-
Indicates unexpected service response code is returned
Declaration
Swift
case unexpected = 11
-
Indicates camera permission denied failure
Declaration
Swift
case cameraPermissionDenied = 12
-
Indicates other camera startup failures
Declaration
Swift
case cameraStartupFailure = 13
-
smile not performed liveness failure reason.
Declaration
Swift
case smileNotPerformed = 14
-
random pose not performed liveness failure reason.
Declaration
Swift
case headTurnNotPerformed = 15
-
Server request timed out liveness failure reason.
Declaration
Swift
case serverTimedOut = 16
-
Invalid token liveness failure reason.
Declaration
Swift
case invalidToken = 17
-
No face detected liveness failure reason.
Declaration
Swift
case noFaceDetected = 18
-
User canceled session liveness failure reason.
Declaration
Swift
case userCanceledSession = 19
-
User canceled active motion liveness failure reason.
Declaration
Swift
case userCanceledActiveMotion = 20
-
User canceled active motion prompt liveness failure reason.
Declaration
Swift
case userCanceledActiveMotionPrompt = 21
-
Client version not supported liveness failure reason.
Declaration
Swift
case clientVersionNotSupported = 22
-
Verification image not provided liveness failure reason.
Declaration
Swift
case verifyImageNotProvided = 23
-
Setting verification image not allowed liveness failure reason.
Declaration
Swift
case setVerifyImageNotAllowed = 24
-
Indicates internal failure
Declaration
Swift
case genericFailure = 25