PassphrasePromptDialogModel
class PassphrasePromptDialogModel : PromptDialogModel<PassphrasePromptDialogModel.PassphraseRequest, String>
PromptDialogModel to display a passphrase dialog.
See PromptModel.requestPassphrase that is a thin wrapper over this class functionality for more info.
Types
Link copied to clipboard
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
val dialogState: SharedFlow<PromptDialogModel.DialogState<PassphrasePromptDialogModel.PassphraseRequest, String>>
The state of this dialog.
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.