HmsBioAuthnPrompt class

Constructors

HmsBioAuthnPrompt()

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authenticateWithCryptoObject(HmsCipherFactory factory) Future<void>
authenticateWithoutCryptoObject() Future<void>
cancelAuth() Future<bool?>
configurePrompt(HmsBioAuthnPromptInfo info) Future<bool?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCallback(BioAuthnCallback callback) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

ERROR_CANCELED → const int
The operation is canceled because the fingerprint authentication sensor is unavailable.
ERROR_CRYPTO_VERIFY_FAILED → const int
The fingerprint authentication result failed the key-based encryption verification.
ERROR_HMS_FRAMEWORK_ERROR → const int
An HMS Core framework error occurred.
ERROR_HW_NOT_PRESENT → const int
The device is not equipped with a fingerprint sensor.
ERROR_HW_UNAVAILABLE → const int
No authentication hardware is available.
ERROR_LOCKOUT → const int
The operation is canceled because the API is locked when the number of attempts reaches the maximum. The API will be locked for 30 seconds after five consecutive attempt failures.
ERROR_LOCKOUT_PERMANENT → const int
The operation is canceled because the number of fingerprint authentication locking times reaches the maximum. Then, fingerprint authentication is disabled until the user is authenticated in a stronger authentication mode, including PIN, pattern, and password authentication.
ERROR_NEGATIVE_BUTTON → const int
The user cancels the operation.
ERROR_NO_BIOMETRICS → const int
No fingerprint is enrolled.
ERROR_NO_DEVICE_CREDENTIAL → const int
No PIN, pattern, and password are set for unlocking the device.
ERROR_NO_SPACE → const int
The storage space is insufficient for the operation such as registration.
ERROR_SYS_INTEGRITY_FAILED → const int
The device failed the system integrity check, for example, the device has been rooted, the device ROM has been flashed, or the system has been damaged.
ERROR_TIMEOUT → const int
The current request timed out. The timeout mechanism prevents infinite waiting for the fingerprint sensor's response. The timeout interval varies depending on the user device and sensor. Generally, the timeout interval is 30 seconds.
ERROR_UNABLE_TO_PROCESS → const int
The sensor cannot process the current fingerprint image.
ERROR_UNSUPPORTED_OS_VER → const int
Fingerprint authentication is not supported in this OS version. Fingerprint authentication of FIDO BioAuthn can only be used on devices running EMUI 5.0.0 or later.
ERROR_USER_CANCELED → const int
The operation is canceled. After receiving this error code, your app should use the standby authentication mode, for example, password authentication. Your app also needs to provide a way, such as a button, for using fingerprint authentication again.
ERROR_VENDOR → const int
Vendor-defined errors.