DragAndDropTargetModifierNode

Function

Common
fun DragAndDropTargetModifierNode(
    shouldStartDragAndDrop: (event: DragAndDropEvent) -> Boolean,
    target: DragAndDropTarget,
): DragAndDropTargetModifierNode

Creates a DragAndDropTargetModifierNode for receiving transfer data from platform drag and drop sessions.

Parameters

shouldStartDragAndDropallows for inspecting the start DragAndDropEvent for a given session to decide whether or not the provided DragAndDropTarget would like to receive from it.
targetallows for receiving events and transfer data from a given drag and drop session.