Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public enum BiometricPromptType

  1. Object
  2. Enum<BiometricPromptType>
  3. 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

NONEBiometric authentication cannot be used right now: no hardware, nothing enrolled, or locked out.
FINGERPRINTAsk for a fingerprint (Touch ID on iOS).
FACEAsk for the face (Face ID on iOS).
BIOMETRICSBiometric 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

NONE
Biometric authentication cannot be used right now: no hardware, nothing enrolled, or locked out. Offer the password only.

FINGERPRINT

FINGERPRINT
Ask for a fingerprint (Touch ID on iOS).

FACE

FACE
Ask for the face (Face ID on iOS).

BIOMETRICS

BIOMETRICS
Biometric 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)