---
title: "DragAndDropSourceModifierNode"
description: "Creates a [DragAndDropSourceModifierNode] for starting platform drag and drop sessions with the
intention of transferring data."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
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. |




