DragAndDropTransferData

Class

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

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