Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public enum BiometricPromptType
- Object
- Enum<BiometricPromptType>
- BiometricPromptType
ImplementsComparable<BiometricPromptType>
What an application should call the device’s biometric authentication in
its own UI – the wording and icon of a “sign in with …” button.
Returned from Biometrics.getPromptType().
It is one answer on every platform and OS release, so an application needs no platform or version check to choose its wording.
Enum constants
NONE | Biometric authentication cannot be used right now: no hardware, nothing enrolled, or locked out. |
FINGERPRINT | Ask for a fingerprint (Touch ID on iOS). |
FACE | Ask for the face (Face ID on iOS). |
BIOMETRICS | Biometric authentication can be used and there is no single name for it. |
Methods
public static BiometricPromptType[] values() | |
public static BiometricPromptType valueOf(String name) |
Inherited methods
Enum constant details
NONE
NONEBiometric authentication cannot be used right now: no hardware,
nothing enrolled, or locked out. Offer the password only.
FINGERPRINT
FINGERPRINTAsk for a fingerprint (Touch ID on iOS).
FACE
FACEAsk for the face (Face ID on iOS).
BIOMETRICS
BIOMETRICSBiometric authentication can be used and there is no single name
for it. Use neutral wording (“Use biometrics”); the system prompt
directs the user to the right sensor. An Android device with more
than one kind of biometric hardware answers this, because Android
reports that some biometric is enrolled and not which one. So do an
iris scanner and Windows Hello, which may verify with a PIN.
Method details
values
public static BiometricPromptType[] values()valueOf
public static BiometricPromptType valueOf(String name)