AndroidPromptModel
PromptModel for Android platform.
Types
Link copied to clipboard
class Builder(val uiLauncher: suspend (PromptDialogModel<*, *>) -> Unit = {}, val toHumanReadable: ConvertToHumanReadableFn = ::defaultConvertToHumanReadable) : PromptModel.Builder
Functions
Link copied to clipboard
Link copied to clipboard
fun <PromptDialogModelT : PromptDialogModel<*, *>> getDialogModel(dialogType: PromptDialogModel.DialogType<PromptDialogModelT>): PromptDialogModelT
Extracts PromptDialogModel of the required type from this PromptModel.
Link copied to clipboard
This method is called when there is no UI that is bound to a particular PromptDialogModel.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun PromptModel.requestPassphrase(title: String, subtitle: String, passphraseConstraints: PassphraseConstraints, passphraseEvaluator: suspend (enteredPassphrase: String) -> PassphraseEvaluation?): String
Prompts user for authentication through a passphrase.
Link copied to clipboard
suspend fun AndroidPromptModel.showBiometricPrompt(cryptoObject: BiometricPrompt.CryptoObject?, title: String, subtitle: String, userAuthenticationTypes: Set<UserAuthenticationType>, requireConfirmation: Boolean): Boolean
Prompts user for authentication through biometrics.