Enumerations
The following enums are available.

KeylessError

The errors returned by the API.
Declaration public let defaultLivenessChallenges: UInt
Value
Explanation
Declaration
enrollmentFailed(title:message:userCancelled:errorCode:)
The enrollment failed.
  • title: Human readable error title.
  • message: Human readable error message detailing the error.
  • userCancelled: true indicates that the user cancelled enrollment.
  • errrorCode: Code to distinguish the error.
case enrollmentFailed(title: String, message: String, userCancelled: Bool, errorCode: Int32)
authenticationFailed(title:message:userCancelled:errorCode:)
​
The authentication failed.
  • title: Human readable error title.
  • message: Human readable error message detailing the error.
  • userCancelled: true indicates that the user cancelled authentication.
  • errrorCode: Code to distinguish the error.
case authenticationFailed(title: String, message: String, userCancelled: Bool, errorCode: Int32)
deEnrollmentFailed(title:message:userCancelled:errorCode:)
​
The de-enrollment failed.
  • title: Human readable error title.
  • message: Human readable error message detailing the error.
  • userCancelled: true is the user cancelled de-enrollment.
  • errrorCode: Code to distinguish the error.
case deEnrollmentFailed(title: String, message: String, userCancelled: Bool, errorCode: Int32)
wrongStatus
The action required a different enrollment status.
case wrongStatus
initializationFailure(:)
The initialization of the Keyless SDK failed. String: The reason for the failure.
case initializationFailure(String?)
internalError(title:message:errorCode:)
The Keyless SDK encountered an internal error.
  • title: Human readable error title.
  • message: Human readable error message detailing the error.
  • errrorCode: Code to distinguish the error.
case internalError(title: String, message: String, errorCode: Int32)
getBackupFailed
A backup could not be retrieved.
case getBackupFailed
configFailed(:)
Configuration error
case configFailed(Int32)

KeylessStatus

The enrollment status.
Declaration public enum KeylessStatus
Value
Explanation
Declaration
notEnrolled
The user is not enrolled.
case notEnrolled
enrolled(keylessID:)
(Deprecated)
​
The user is enrolled, and the Keyless class in set to legacy mode
case enrolled(keylessID: String
enrolledCustomToken
The user is enrolled, and the Keyless class is set to custom token mode.
case enrolledCustomToken
​
Export as PDF
Copy link