listItemsMultiChoice

@Composable
fun MaterialDialogScope.listItemsMultiChoice(list: List<String>, disabledIndices: Set<Int> = setOf(), initialSelection: Set<Int> = setOf(), waitForPositiveButton: Boolean = true, onCheckedChange: (indices: Set<Int>) -> Unit = {})

Adds a multi-choice list view to the dialog

Parameters

list

a list of string labels for the multi-choice items

disabledIndices

a list of indices which should be disabled/unselectable

initialSelection

a list of indices which should be selected initially

waitForPositiveButton

if true the onCheckedChange callback will only be called when the positive button is pressed, otherwise it will be called when the a new item is selected

onCheckedChange

a function which is called with a list of selected indices. The timing of this call is dictated by waitForPositiveButton