# DragAndDropEvent

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.DragAndDropEvent) Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.6.0) Common/AllAndroid/JVM
- Cmn

  ```
  class DragAndDropEvent
  ```

*** ** * ** ***

A representation of an event sent by the platform during a drag and drop operation.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropEvent#DragAndDropEvent(android.view.DragEvent)(dragEvent: https://developer.android.com/reference/android/view/DragEvent.html)` | android |

| ### Extension functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropEvent.https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropEvent#(androidx.compose.ui.draganddrop.DragAndDropEvent).mimeTypes()()` The mime types present in a `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropEvent` | android |
| `https://developer.android.com/reference/android/view/DragEvent.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropEvent.https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropEvent#(androidx.compose.ui.draganddrop.DragAndDropEvent).toAndroidDragEvent()()` Returns the backing `https://developer.android.com/reference/android/view/DragEvent.html` to read platform specific data | android |

## Public constructors

### DragAndDropEvent

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

```
DragAndDropEvent(dragEvent: DragEvent)
```

## Extension functions

### DragAndDropEvent.mimeTypes

android 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.android.kt+function:mimeTypes)

```
fun DragAndDropEvent.mimeTypes(): Set<String>
```

The mime types present in a `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropEvent`

### DragAndDropEvent.toAndroidDragEvent

android 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.android.kt+function:toAndroidDragEvent)

```
fun DragAndDropEvent.toAndroidDragEvent(): DragEvent
```

Returns the backing `https://developer.android.com/reference/android/view/DragEvent.html` to read platform specific data