---
title: "DragAndDropTargetModifierNode"
description: "Creates a [DragAndDropTargetModifierNode] for receiving transfer data from platform drag and drop
sessions."
type: "function"
---

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


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


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




