Instance Property

biometryType

The type of biometric authentication supported by the device.

Declaration

var biometryType: LABiometryType { get }

Discussion

Use the value of this property to ensure that any authentication-related user prompts you create match the biometric capabilities of the device. For example, if the value of this property is faceID, don’t refer to Touch ID in an authentication prompt.

This property is only set when canEvaluatePolicy(_:error:) succeeds for a biometric policy. The default value is LABiometryNone.

See Also

Evaluating Authentication Policies

func canEvaluatePolicy(LAPolicy, error: NSErrorPointer)

Preflights an authentication policy to see if it is possible for authentication to succeed.

var evaluatedPolicyDomainState: Data?

The current state of the evaluated policy domain.

var maxBiometryFailures: NSNumber?

Allows setting the limit for the number of failures during biometric authentication.

Deprecated