SinglePromptModel

class SinglePromptModel<ParametersT, ResultT>(lingerDuration: Duration = 0.seconds)

A model for an individual prompt dialog.

Constructors

Link copied to clipboard
constructor(lingerDuration: Duration = 0.seconds)

Types

Link copied to clipboard
class DialogShownState<ParametersT, ResultT>(val parameters: ParametersT, val resultChannel: SendChannel<ResultT>) : SinglePromptModel.DialogState<ParametersT, ResultT>

Prompt dialog should be displayed.

Link copied to clipboard

A class that describes the state of the dialog.

Link copied to clipboard

Prompt dialog should not be shown.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun displayPrompt(parameters: ParametersT): ResultT