# DragAndDropStartTransferScope

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.kt+class:androidx.compose.ui.draganddrop.DragAndDropStartTransferScope) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0) Common/AllAndroid/JVM
- Cmn

  ```
  interface DragAndDropStartTransferScope
  ```

*** ** * ** ***

A scope that allows starting a drag and drop session.

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropStartTransferScope#startDragAndDropTransfer(androidx.compose.ui.draganddrop.DragAndDropTransferData,androidx.compose.ui.geometry.Size,kotlin.Function1)( transferData: https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropTransferData, decorationSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size, drawDragDecoration: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Initiates a drag-and-drop operation for transferring data. | Cmn |

## Public functions

### startDragAndDropTransfer

Cmn

```
fun startDragAndDropTransfer(
    transferData: DragAndDropTransferData,
    decorationSize: Size,
    drawDragDecoration: DrawScope.() -> Unit
): Boolean
```

Initiates a drag-and-drop operation for transferring data.

| Parameters |
|---|---|
| `transferData: https://developer.android.com/reference/kotlin/androidx/compose/ui/draganddrop/DragAndDropTransferData` | the data to be transferred after successful completion of the drag and drop gesture. |
| `decorationSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | the size of the drag decoration to be drawn. |
| `drawDragDecoration: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | provides the visual representation of the item dragged during the drag and drop gesture. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if the method completes successfully, or false if it fails anywhere. Returning false means the system was unable to do a drag because of another ongoing operation or some other reasons. |