BiometricPromptDialogModel

PromptDialogModel to display a biometric prompt on Android.

See AndroidPromptModel.showBiometricPrompt that is a thin wrapper over this class functionality for more info.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class BiometricPromptState(val cryptoObject: BiometricPrompt.CryptoObject?, val title: String, val subtitle: String, val userAuthenticationTypes: Set<UserAuthenticationType>, val requireConfirmation: Boolean)

Parameters for the biometric prompt.

Properties

Link copied to clipboard

True if this model is bound to the UI.

Link copied to clipboard
Link copied to clipboard

Dialog type that this model servers.

Functions

Link copied to clipboard
suspend fun displayPrompt(parameters: BiometricPromptDialogModel.BiometricPromptState, lingerDuration: Duration = 0.seconds): Boolean

Request UI to display a prompt dialog and obtain a response from the user.