Interface

DragAndDropSourceScope

A scope that allows for the detection of the start of a drag and drop gesture, and subsequently starting a drag and drop session.

Source set: Android
@Deprecated(
    message =
        "Replaced by a callback for obtain a transfer data," +
            "start detection is performed by Compose itself"
)
public interface DragAndDropSourceScope : PointerInputScope

A scope that allows for the detection of the start of a drag and drop gesture, and subsequently starting a drag and drop session.

Functions

startTransfer

Source set: Android
public fun startTransfer(transferData: DragAndDropTransferData)

Starts a drag and drop session with transferData as the data to be transferred on gesture completion

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: