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

MenuChoice

data class MenuChoice : PromptRequest (source)

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

Constructors

Name Summary
<init> MenuChoice(choices: Array<Choice>, onConfirm: (Choice) -> Unit)
Value type that represents a request for a menu 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.