# DragAndDropTransferData

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/draganddrop/DragAndDrop.+class:androidx.compose.ui.draganddrop.DragAndDropTransferData) Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.6.0) Common/AllAndroid/JVM
- Cmn

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

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropTransferData#DragAndDropTransferData(android.content.ClipData,kotlin.Any,kotlin.Int)(clipData: https://developer.android.com/reference/android/content/ClipData.html, localState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | android |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/android/content/ClipData.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropTransferData#clipData()` The `https://developer.android.com/reference/android/content/ClipData.html` being transferred. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropTransferData#flags()` Flags for the drag and drop operation. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropTransferData#localState()` Optional local state for the DnD operation | android |

## Public constructors

### DragAndDropTransferData

android Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.6.0)

```
DragAndDropTransferData(
    clipData: ClipData,
    localState: Any? = null,
    flags: Int = 0
)
```

## Public properties

### clipData

android Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.6.0)

```
val clipData: ClipData
```

The `https://developer.android.com/reference/android/content/ClipData.html` being transferred.

### flags

android Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.6.0)

```
val flags: Int
```

Flags for the drag and drop operation.

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#startDragAndDrop(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)` |   |

### localState

android Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.6.0)

```
val localState: Any?
```

Optional local state for the DnD operation

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#startDragAndDrop(android.content.ClipData, android.view.View.DragShadowBuilder, java.lang.Object, int)` |   |