Serializable, Comparable<BiometricAuthentication.AuthType>public static enum BiometricAuthentication.AuthType extends Enum<BiometricAuthentication.AuthType>
This enumeration is used as a parameter in
BiometricAuthentication.checkAuthenticationAvailability(ohos.biometrics.authentication.BiometricAuthentication.AuthType,ohos.biometrics.authentication.BiometricAuthentication.SecureLevel,boolean) and
BiometricAuthentication.execAuthenticationAction(ohos.biometrics.authentication.BiometricAuthentication.AuthType,ohos.biometrics.authentication.BiometricAuthentication.SecureLevel,boolean,boolean,ohos.biometrics.authentication.BiometricAuthentication.SystemAuthDialogInfo).
| 枚举常量 | 说明 |
|---|---|
AUTH_TYPE_BIOMETRIC_ALL |
Indicates that any supported biometric information of the device (such as facial image and fingerprint)
can be used for authentication.
|
AUTH_TYPE_BIOMETRIC_FACE_ONLY |
Indicates that only the human face is used for authentication.
|
AUTH_TYPE_BIOMETRIC_FINGERPRINT_ONLY |
Indicates that only the fingerprint is used for authentication.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static BiometricAuthentication.AuthType |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static BiometricAuthentication.AuthType[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (BiometricAuthentication.AuthType c : BiometricAuthentication.AuthType.values()) System.out.println(c); |
public static final BiometricAuthentication.AuthType AUTH_TYPE_BIOMETRIC_ALL
public static final BiometricAuthentication.AuthType AUTH_TYPE_BIOMETRIC_FINGERPRINT_ONLY
public static final BiometricAuthentication.AuthType AUTH_TYPE_BIOMETRIC_FACE_ONLY
public static BiometricAuthentication.AuthType[] values()
for (BiometricAuthentication.AuthType c : BiometricAuthentication.AuthType.values()) System.out.println(c);
public static BiometricAuthentication.AuthType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值