android-components / mozilla.components.concept.engine.prompt / PromptRequest / SingleChoice

SingleChoice

data class SingleChoice : PromptRequest (source)

Value type that represents a request for a single choice prompt.

Constructors

Name Summary
<init> SingleChoice(choices: Array<Choice>, onConfirm: (Choice) -> Unit)
Value type that represents a request for a single choice prompt.

Properties

Name Summary
choices val choices: Array<Choice>
All the possible options.
onConfirm val onConfirm: (Choice) -> Unit
A callback indicating which option was selected.