---
title: "DragAndDropTransferData"
description: "Definition for a type representing transferable data. It could be a remote URI, rich text data on
the clip board, a local file, or more."
type: "class"
---

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


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
expect class DragAndDropTransferData
```


Definition for a type representing transferable data. It could be a remote URI, rich text data on
the clip board, a local file, or more.


<div class='sourceset sourceset-android'>Android</div>


```kotlin
actual class DragAndDropTransferData(
    /** The [ClipData] being transferred. */
    val clipData: ClipData,
    /**
     * Optional local state for the DnD operation
     *
     * @see [View.startDragAndDrop]
     */
    val localState: Any? = null,
    /**
     * Flags for the drag and drop operation.
     *
     * @see [View.startDragAndDrop]
     */
    val flags: Int = 0,
)
```


`DragAndDropTransferData` representation for the Android platform. It provides the `ClipData`
required for drag and drop.



