Function

DragAndDropTargetModifierNode

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

DragAndDropTargetModifierNode

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

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

Parameters

shouldStartDragAndDrop allows for inspecting the start DragAndDropEvent for a given session to decide whether or not the provided DragAndDropTarget would like to receive from it.
target allows for receiving events and transfer data from a given drag and drop session.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: