BiometricHostApi class
Biometric-bound keys: signing requires a fresh strong-biometric match, and enrolling a new fingerprint or face invalidates the key. Errors use the codes UNSUPPORTED, NOT_ENROLLED, CANCELLED, LOCKED_OUT, ENROLLMENT_CHANGED, KEY_MISSING and FAILED.
Constructors
- BiometricHostApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
-
Constructor for BiometricHostApi. The
binaryMessengernamed argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pigeonVar_binaryMessenger → BinaryMessenger?
-
final
- pigeonVar_messageChannelSuffix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
approve(
String alias, Uint8List payload, String title, String reason) → Future< Uint8List> -
Shows the biometric prompt and, on success, signs
payloadwith the biometric-bound key. -
delete(
String alias) → Future< void> -
enroll(
String alias) → Future< DeviceKeyInfoMsg> -
isAvailable(
) → Future< bool> -
keyState(
String alias) → Future< BiometricKeyStateMsg> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>