Multiple

constructor(options: List<Option>, @IntRange(from = 1, to = 90) minChoices: Int? = null, @IntRange(from = 3, to = 90) maxChoices: Int? = null, maxChoicesStrict: Boolean = true, 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<Option>) -> Unit)

Parameters

options

The options that will be displayed.

minChoices

The minimum amount of choices that are allowed.

maxChoices

The maximum amount of choices that are allowed.

maxChoicesStrict

Allow the user to temporarily select more options than maximum choices.

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.