longPressDraggableHandle

context(cellScope: TableCellScope)
fun Modifier.longPressDraggableHandle(enabled: Boolean = true, interactionSource: MutableInteractionSource? = null, onDragStarted: (startedPosition: Offset) -> Unit = {}, onDragStopped: () -> Unit = {}): Modifier

Makes this modifier act as a long-press drag handle for the current table item from cell content.

This is a convenience wrapper around TableItemScope.applyLongPressDraggableHandle for use inside a TableCellScope context. The modifier only works correctly when applied to a node that is a descendant of ReorderableItem. Dragging starts only after a long press.

Return

a modifier with long-press drag-handle behavior applied.

Parameters

enabled

whether drag gestures are enabled for this handle.

interactionSource

optional MutableInteractionSource used to emit DragInteraction.Start when dragging begins.

onDragStarted

callback invoked when dragging starts.

onDragStopped

callback invoked when dragging stops.