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 smileTimedOut = 14
  • random pose not performed liveness failure reason.

    Declaration

    Swift

    case randomPoseTimedOut = 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 cancelled session liveness failure reason.

    Declaration

    Swift

    case userCancelledSession = 19
  • User cancelled active motion liveness failure reason.

    Declaration

    Swift

    case userCancelledActiveMotion = 20
  • Indicates internal failure

    Declaration

    Swift

    case genericFailure = 21