listItemsSingleChoice
@Composable
Content copied to clipboard
Adds a single-choice list view to the dialog
Parameters
list
a list of string labels for the single-choice items
disabledIndices
a list of indices which should be disabled/unselectable
initialSelection
the index of the item that should initially be selected
waitForPositiveButton
if true the onChoiceChange callback will only be called when the positive button is pressed, otherwise it will be called when the a new item is selected
onChoiceChange
a function which is called with the index of the selected item. The timing of this call is dictated by waitForPositiveButton