Multiple
class Multiple(val options: List<ListOption>, val showCheckBoxes: Boolean = false, @IntRange(from = 1, to = 90) val minChoices: Int? = null, @IntRange(from = 3, to = 90) val maxChoices: Int? = null, val withButtonView: Boolean = true, val extraButton: SelectionButton? = null, val onExtraButtonClick: () -> Unit? = null, val negativeButton: SelectionButton? = BaseConstants.DEFAULT_NEGATIVE_BUTTON, val onNegativeClick: () -> Unit? = null, val positiveButton: SelectionButton = BaseConstants.DEFAULT_POSITIVE_BUTTON, val onSelectOptions: (selectedIndices: List<Int>, selectedOptions: List<ListOption>) -> Unit) : ListSelection
Multiple-choice selection for the list dialog.
Parameters
options
The options that will be displayed.
showCheckBoxes
Show the options with check boxes.
minChoices
The minimum amount of choices that are allowed.
maxChoices
The maximum amount of choices that are allowed.
withButtonView
Show the dialog with the buttons view.
extraButton
An extra button that can be used for a custom action.
onExtraButtonClick
The listener that is invoked when the extra button is clicked.
negativeButton
The button that will be used as a negative button.
onNegativeClick
The listener that is invoked when the negative button is clicked.
positiveButton
The button that will be used as a positive button.
onSelectOptions
The listener that returns the selected indices and the selected options when the positive button is clicked.
Constructors
Link copied to clipboard
constructor(options: List<ListOption>, showCheckBoxes: Boolean = false, @IntRange(from = 1, to = 90) minChoices: Int? = null, @IntRange(from = 3, to = 90) maxChoices: Int? = null, withButtonView: Boolean = true, extraButton: SelectionButton? = null, onExtraButtonClick: () -> Unit? = null, negativeButton: SelectionButton? = BaseConstants.DEFAULT_NEGATIVE_BUTTON, onNegativeClick: () -> Unit? = null, positiveButton: SelectionButton = BaseConstants.DEFAULT_POSITIVE_BUTTON, onSelectOptions: (selectedIndices: List<Int>, selectedOptions: List<ListOption>) -> Unit)