android-components / mozilla.components.feature.prompts / ChoiceDialogFragment

ChoiceDialogFragment

class ChoiceDialogFragment : PromptDialogFragment (source)

android.support.v4.app.DialogFragment implementation to display choice(options,optgroup and menu) web content in native dialogs.

Constructors

<init>

ChoiceDialogFragment()

android.support.v4.app.DialogFragment implementation to display choice(options,optgroup and menu) web content in native dialogs.

Inherited Properties

feature

var feature: PromptFeature?

Functions

onCreateDialog

fun onCreateDialog(savedInstanceState: Bundle?): Dialog

onSelect

fun onSelect(selectedChoice: Choice): Unit

Companion Object Properties

MENU_CHOICE_DIALOG_TYPE

const val MENU_CHOICE_DIALOG_TYPE: Int

MULTIPLE_CHOICE_DIALOG_TYPE

const val MULTIPLE_CHOICE_DIALOG_TYPE: Int

SINGLE_CHOICE_DIALOG_TYPE

const val SINGLE_CHOICE_DIALOG_TYPE: Int

Companion Object Functions

newInstance

fun newInstance(choices: Array<Choice>, sessionId: String, dialogType: Int): ChoiceDialogFragment