Platforms to show: All Mac Windows Linux Cross-Platform

Back to LAContextMBS class.

LAContextMBS.BiometryTypeFaceID = 2

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 21.0
One of the biometry type constants.

The device supports Face ID.

LAContextMBS.BiometryTypeNone = 0

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 21.0
One of the biometry type constants.

The device does not support biometry.

LAContextMBS.BiometryTypeTouchID = 1

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 21.0
One of the biometry type constants.

The device supports Touch ID.

LAContextMBS.CredentialTypeApplicationPassword = 0

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One oft he credential types.

The credential type for an application password.

LAContextMBS.CredentialTypeSmartCardPIN = 1

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 21.0
One oft he credential types.

Smart card PIN provided by application.

If not set, LocalAuthentication will ask users for the smart card PIN when necessary. Applications can provide the PIN using setCredential method. In such case, LocalAuthentication will not show the smart card PIN user interface.
When entered from the LocalAuthentication user interface, the PIN is stored as UTF-8 encoded string.

LAContextMBS.kErrorAppCancel = -9

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

Authentication was canceled by application (e.g. invalidate was called while authentication was in progress).

LAContextMBS.kErrorAuthenticationFailed = -1

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

Authentication was not successful, because user failed to provide valid credentials.

LAContextMBS.kErrorBiometryLockout = -8

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 18.4
One of the error codes.

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 PolicyDeviceOwnerAuthenticationWithBiometrics will ask for passcode as a prerequisite.

LAContextMBS.kErrorBiometryNotAvailable = -6

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 18.4
One of the error codes.

Authentication could not start, because Biometry is not available on the device.

LAContextMBS.kErrorBiometryNotEnrolled = -7

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 18.4
One of the error codes.

Authentication could not start, because Biometry has no enrolled fingers.

LAContextMBS.kErrorInvalidContext = -10

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

LAContext passed to this call has been previously invalidated.

LAContextMBS.kErrorPasscodeNotSet = -5

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

Authentication could not start, because passcode is not set on the device.

LAContextMBS.kErrorSystemCancel = -4

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

Authentication was canceled by system (e.g. another application went to foreground).

LAContextMBS.kErrorTouchIDLockout = -8

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

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 PolicyDeviceOwnerAuthenticationWithBiometrics will ask for passcode as a prerequisite.

LAContextMBS.kErrorTouchIDNotAvailable = -6

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

Authentication could not start, because Touch ID is not available on the device.

LAContextMBS.kErrorTouchIDNotEnrolled = -7

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

Authentication could not start, because Touch ID has no enrolled fingers.

LAContextMBS.kErrorUserCancel = -2

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

Authentication was canceled by user (e.g. tapped Cancel button).

LAContextMBS.kErrorUserFallback = -3

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the error codes.

Authentication was canceled, because the user tapped the fallback button (Enter Password).

LAContextMBS.kLAErrorDomain = "com.apple.LocalAuthentication"

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
The error domain for Local Authentication.

LAContextMBS.PolicyDeviceOwnerAuthentication = 2

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the policy constants.

Device owner is going to be authenticated by biometry or user password.

Touch ID or user password authentication is required. If Touch ID is not available, not enrolled or locked out, then the user is asked for password right away.

Touch ID authentication dialog behaves similarly as the one used by PolicyDeviceOwnerAuthenticationWithBiometrics. However, the "Use Password.." button does not end the authentication. Instead, it switches the authentication mechanism to user password.

LAContextMBS.PolicyDeviceOwnerAuthenticationWithBiometrics = 1

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 17.0
One of the policy constants.

The policy for owner authentication with biometrics.

LAContextMBS.PolicyDeviceOwnerAuthenticationWithBiometricsOrWatch = 4

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 21.0
One of the policy constants.

Device owner is going to be authenticated by biometry or Watch.

Watch or biometric authentication is required. If no nearby paired watch device can be found, it behaves as PolicyDeviceOwnerAuthenticationWithBiometrics. Similarly, if biometry is unavailable it behaves as PolicyDeviceOwnerAuthenticationWithWatch.

Watch authentication dialog looks and behaves similarly to biometric variant. When both mechanisms are available, user is asked to use biometry and watch authentication will run in parallel.

LAContextMBS.PolicyDeviceOwnerAuthenticationWithWatch = 3

Type Topic Plugin Version
const TouchBar MBS Mac64bit Plugin 21.0
Device owner is going to be authenticated by Watch.

Watch authentication is required. If no nearby paired watch device can be found,
kErrorWatchNotAvailable is returned.

Watch authentication dialog looks and behaves similarly to the biometric variant. Users can confirm authentication by double-clicking the side button on their watch.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...