WebPromptModel
PromptModel for Web platform.
Types
Link copied to clipboard
class Builder(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.