nextTotpWithBiometrics

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

Returns the current 6 digit used in the TOTP offline authentication, for the provided user id. Before calling this function, it should be confirmed that the user has biometrics enabled by using the function getActiveUnlockMethods. This method is only available when the SDK LockConfigurationType is SDK_PIN_WITH_BIOMETRICS_OPTIONAL.

Parameters

userId

the Futurae account's user id.

activity

the activity that will present the biometric authentication to the user.

promptTitle

the title used for the Biometrics prompt.

promptSubtitle

the subtitle used for the Biometrics prompt.

promptDescription

the description used for the Biometrics prompt.

negativeButtonText

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

callback

used to receive the verification code or the error of this operation.

See also

.nextTotp

Throws

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

if any of the specified arguments are invalid or the user-id is not an enrolled account.

if the biometrics verification fails.