data class SingleChoice : PromptRequest
(source)
Value type that represents a request for a single choice prompt.
SingleChoice(choices: Array<Choice>, onSelect: (Choice) -> Unit)
Value type that represents a request for a single choice prompt. |
val choices: Array<Choice>
All the possible options. |
|
val onSelect: (Choice) -> Unit
A callback indicating which option was selected. |