🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

DragAndDropSourceModifierNode

Creates a DragAndDropSourceModifierNode for starting platform drag and drop sessions with the intention of transferring data.

DragAndDropSourceModifierNode

Source set: Common
public fun DragAndDropSourceModifierNode(
    onStartTransfer: DragAndDropStartTransferScope.(Offset) -> Unit
): DragAndDropSourceModifierNode

Creates a DragAndDropSourceModifierNode for starting platform drag and drop sessions with the intention of transferring data.

Parameters

onStartTransfer the callback function that is invoked when drag and drop session starts. It takes an Offset parameter representing the start position of the drag.