activateBiometrics

public final Unit activateBiometrics(FragmentActivity activity, String promptTitle, String promptSubtitle, String promptDescription, String negativeButtonText, Callback<Unit> callback)

Activate the biometric authentication as a means of convenience to verify the user presence, so that the user doesn't have to enter the PIN to unlock the SDK. This method shall only be called when the SDK LockConfigurationType is SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

This is a protected operation, so the SDK must be unlocked before calling this method.

Parameters

activity

android activity instance. Required for biometric authentication

promptTitle

the title used for the authentication prompt.

promptSubtitle

the subtitle used for the authentication prompt.

promptDescription

the description used for the authentication prompt.

negativeButtonText

the text for the “cancel” button of the Biometrics prompt.

callback

Callback to receive the result or error of this operation.

See also

Throws

if the SDK is configured with a LockConfigurationType other than SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

if the SDK is locked.

if the device does not support biometrics verification, or if the device has no supported biometrics configured.

if any of the specified arguments are invalid.