PassphrasePromptDialogModel

PromptDialogModel to display a passphrase dialog.

See PromptModel.requestPassphrase that is a thin wrapper over this class functionality for more info.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class PassphraseRequest(val title: String, val subtitle: String, val passphraseConstraints: PassphraseConstraints, val passphraseEvaluator: suspend (enteredPassphrase: String) -> PassphraseEvaluation?)

Data for the UI to display and run passphrase dialog.

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: PassphrasePromptDialogModel.PassphraseRequest, lingerDuration: Duration = 0.seconds): String

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