The methods include checking the authentication capability, and performing and canceling authentication. Biometrics, such as human face and fingerprint, can be used for authentication. Before performing authentication, check whether a device supports biometric authentication based on the authentication type, security level, and whether local authentication is used. If biometric authentication is not supported, consider using other authentication capabilities.
| 接口 | 说明 |
|---|---|
| IFaceAuthentication |
Provides constants related to facial authentication.
|
| 类 | 说明 |
|---|---|
| BiometricAuthentication |
Provides the biometric authentication capability.
|
| BiometricAuthentication.AuthenticationTips |
Provides the authentication tips.
|
| BiometricAuthentication.SystemAuthDialogInfo |
Provides the customized authentication tips in the system-provided authentication dialog box.
|
| IFaceAuthentication.FaceAuthResultCode |
Provides the constants indicating the facial authentication result.
|
| IFaceAuthentication.FaceAuthTipsCode |
Provides the constants indicating the facial authentication tips.
|
| 枚举 | 说明 |
|---|---|
| BiometricAuthentication.AuthType |
Indicates the authentication type.
|
| BiometricAuthentication.SecureLevel |
Indicates the security level of the data to access.
|