Multiple

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)

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.