AndroidPromptModel
class AndroidPromptModel(val toHumanReadable: ConvertToHumanReadableFn = ::defaultConvertToHumanReadable) : ViewModel, PromptModel
PromptModel for Android platform.
On Android PromptModel is also a ViewModel. promptModelScope that it exposes is automatically cancelled when this ViewModel is cleared.
In addition to passphrasePromptModel, Android UI must provide bindings for two more dialog kinds: biometricPromptModel and scanNfcPromptModel.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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?
Requests that the UI layer should ask the user for a passphrase.
Link copied to clipboard
suspend fun showBiometricPrompt(cryptoObject: BiometricPrompt.CryptoObject?, title: String, subtitle: String, userAuthenticationTypes: Set<UserAuthenticationType>, requireConfirmation: Boolean): Boolean
Prompts user for authentication.