Class

DragAndDropTransferData

DragAndDropTransferData representation for the Android platform.

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

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

Source set: Common
public 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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: