#[repr(transparent)]pub struct LAError(pub NSInteger);
LAError
only.Expand description
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl LAError
impl LAError
Sourcepub const AuthenticationFailed: Self
pub const AuthenticationFailed: Self
Authentication was not successful because user failed to provide valid credentials.
Sourcepub const UserCancel: Self
pub const UserCancel: Self
Authentication was canceled by user (e.g. tapped Cancel button).
Sourcepub const UserFallback: Self
pub const UserFallback: Self
Authentication was canceled because the user tapped the fallback button (Enter Password).
Sourcepub const SystemCancel: Self
pub const SystemCancel: Self
Authentication was canceled by system (e.g. another application went to foreground).
Sourcepub const PasscodeNotSet: Self
pub const PasscodeNotSet: Self
Authentication could not start because passcode is not set on the device.
Sourcepub const TouchIDNotAvailable: Self
👎Deprecated: use LAErrorBiometryNotAvailable
pub const TouchIDNotAvailable: Self
Authentication could not start because Touch ID is not available on the device.
Sourcepub const TouchIDNotEnrolled: Self
👎Deprecated: use LAErrorBiometryNotEnrolled
pub const TouchIDNotEnrolled: Self
Authentication could not start because Touch ID has no enrolled fingers.
Sourcepub const TouchIDLockout: Self
👎Deprecated: use LAErrorBiometryLockout
pub const TouchIDLockout: Self
Authentication was not successful because there were too many failed Touch ID attempts and Touch ID is now locked. Passcode is required to unlock Touch ID, e.g. evaluating LAPolicyDeviceOwnerAuthenticationWithBiometrics will ask for passcode as a prerequisite.
Sourcepub const AppCancel: Self
pub const AppCancel: Self
Authentication was canceled by application (e.g. invalidate was called while authentication was in progress).
Sourcepub const InvalidContext: Self
pub const InvalidContext: Self
LAContext passed to this call has been previously invalidated.
Sourcepub const BiometryNotAvailable: Self
pub const BiometryNotAvailable: Self
Authentication could not start because biometry is not available on the device.
Sourcepub const BiometryNotEnrolled: Self
pub const BiometryNotEnrolled: Self
Authentication could not start because biometry has no enrolled identities.
Sourcepub const BiometryLockout: Self
pub const BiometryLockout: Self
Authentication was not successful because there were too many failed biometry attempts and biometry is now locked. Passcode is required to unlock biometry, e.g. evaluating LAPolicyDeviceOwnerAuthenticationWithBiometrics will ask for passcode as a prerequisite.
Sourcepub const NotInteractive: Self
pub const NotInteractive: Self
Authentication failed because it would require showing UI which has been forbidden by using interactionNotAllowed property.
Sourcepub const WatchNotAvailable: Self
👎Deprecated
pub const WatchNotAvailable: Self
Authentication could not start because there was no paired watch device nearby.
Sourcepub const CompanionNotAvailable: Self
pub const CompanionNotAvailable: Self
Authentication could not start because there was no paired companion device nearby.
Sourcepub const BiometryNotPaired: Self
pub const BiometryNotPaired: Self
Authentication could not start because this device supports biometry only via removable accessories and no accessory has been paired.
Sourcepub const BiometryDisconnected: Self
pub const BiometryDisconnected: Self
Authentication could not start because this device supports biometry only via removable accessories and the paired accessory is not connected.
Sourcepub const InvalidDimensions: Self
pub const InvalidDimensions: Self
Authentication could not start because dimensions of embedded UI are invalid.