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.
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: