showBiometricPrompt

suspend fun AndroidPromptModel.showBiometricPrompt(cryptoObject: BiometricPrompt.CryptoObject?, reason: Reason, userAuthenticationTypes: Set<UserAuthenticationType>, requireConfirmation: Boolean): Boolean

Prompts user for authentication through biometrics.

To dismiss the prompt programmatically, cancel the job the coroutine was launched in.

Return

true if authentication succeed, false if the user dismissed the prompt.

Parameters

cryptoObject

optional CryptoObject to be associated with the authentication.

reason

a Reason describing why authentication is needed.

userAuthenticationTypes

the set of allowed user authentication types, must contain at least one element.

requireConfirmation

set to true to require explicit user confirmation after presenting passive biometric.