HmsFaceManager class

Constructors

HmsFaceManager()

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

authWithCryptoObject(HmsCipherFactory factory) Future<void>
authWithoutCryptoObject() Future<void>
canAuth() Future<int?>
getFaceModality() Future<int?>
hasEnrolledTemplates() Future<bool?>
init() Future<bool?>
isHardwareDetected() 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

FACE_ACQUIRED_GOOD → const int
The obtained face image is clear.
FACE_ACQUIRED_INSUFFICIENT → const int
The face image does not meet the processing requirements.
FACE_ACQUIRED_NOT_DETECTED → const int
The sensor detects no face.
FACE_ACQUIRED_POOR_GAZE → const int
The user's focus is too far away from the sensor, and an important part of the user's face is not detected.
FACE_ACQUIRED_TOO_BRIGHT → const int
The obtained face image is too bright due to high illumination.
FACE_ACQUIRED_TOO_CLOSE → const int
The face position is too close to the user device.
FACE_ACQUIRED_TOO_DARK → const int
The obtained face image is too dark due to low illumination.
FACE_ACQUIRED_TOO_FAR → const int
The face position is too far away from the user device.
FACE_ACQUIRED_TOO_HIGH → const int
The user device position is too high, and only the top part of the face is obtained.
FACE_ACQUIRED_TOO_LEFT → const int
The user device position is to the left, and only the left part of the face is obtained.
FACE_ACQUIRED_TOO_LOW → const int
The user device position is too low, and only the bottom part of the face is obtained.
FACE_ACQUIRED_TOO_MUCH_MOTION → const int
The face moves too frequently during image collection.
FACE_ACQUIRED_TOO_RIGHT → const int
The user device position is to the right, and only the right part of the face is obtained.
FACE_ACQUIRED_VENDOR → const int
Vendor-defined errors.
FACE_ACQUIRED_VENDOR_1012 → const int
The face does not match the enrolled one. (BioAuthnCallback#onAuthHelp)
FACE_ACQUIRED_VENDOR_1038 → const int
A 3D face was detected. (BioAuthnCallback#onAuthHelp)
FACE_ERROR_CANCELED → const int
The operation is canceled because the 3D facial authentication sensor is unavailable.
FACE_ERROR_HMS_FRAMEWORK_ERROR → const int
An HMS Core framework error occurred.
FACE_ERROR_HW_NOT_PRESENT → const int
The device does not have a 3D facial authentication sensor.
FACE_ERROR_HW_UNAVAILABLE → const int
No authentication hardware is available.
FACE_ERROR_LOCKOUT → const int
The number of unlocking attempts reaches the maximum.
FACE_ERROR_LOCKOUT_PERMANENT → const int
3D facial authentication is disabled.
FACE_ERROR_NO_SPACE → const int
The storage space is insufficient for registration.
FACE_ERROR_NOT_ENROLLED → const int
No 3D facial authentication template is registered before authentication.
FACE_ERROR_SYS_INTEGRITY_FAILED → const int
The device failed the system integrity check, for example, the device has been rooted or the system integrity has been damaged.
FACE_ERROR_TIMEOUT → const int
The request timed out.
FACE_ERROR_UNABLE_TO_PROCESS → const int
The sensor cannot process the current face image.
FACE_ERROR_UNABLE_TO_REMOVE → const int
Failed to delete 3D face data.
FACE_ERROR_UNSUPPORTED_OS_VER → const int
3D facial authentication is not supported in this OS version. 3D facial authentication of FIDO BioAuthn can only be used on devices running EMUI 10.0.0 or later.
FACE_ERROR_USER_CANCELED → const int
The user cancels the authentication.
FACE_ERROR_VENDOR → const int
Vendor-defined errors.
FACE_ERROR_VENDOR_BASE → const int
Start result code of vendor-defined errors.
FACE_SUCCESS → const int
3D facial authentication is available.