dragSelectSemantics

fun <Item> Modifier.dragSelectSemantics(dragSelectState: DragSelectState<Item>, item: Item, label: String = DEFAULT_LABEL): Modifier

Adds a long click semantics to the modifier.

When the semantics is triggered, the item is added to the selection in DragSelectState.

Parameters

Item

the type of the items in the selection.

dragSelectState

the state to use for the semantics.

item

the item to add to the selection when the semantics is triggered.

label

the label to use for the semantics.


fun <Item> Modifier.dragSelectSemantics(dragSelectState: DragSelectState<Item>, label: String = DEFAULT_LABEL, onLongClick: () -> Unit): Modifier

Adds a long click semantics to the modifier.

Parameters

Item

the type of the items in the selection.

dragSelectState

the state to use for the semantics.

label

the label to use for the semantics.

onLongClick

the callback to invoke when the semantics is triggered.


fun Modifier.dragSelectSemantics(inSelectionMode: Boolean, label: String = DEFAULT_LABEL, onLongClick: () -> Unit): Modifier

Adds a long click semantics to the modifier.

Parameters

inSelectionMode

whether the semantics should be added or not.

label

the label to use for the semantics.

onLongClick

the callback to invoke when the semantics is triggered.