DragAndDropSourceModifierNode


A Modifier.Node that can be used as a source for platform drag and drop operations. In most cases, you will want to delegate to the DragAndDropSourceModifierNode returned by the eponymous factory method.

Summary

Public functions

Unit

Requests a drag and drop transfer.

Cmn

Public properties

Boolean

Returns a boolean value indicating whether requesting drag and drop transfer is required.

Cmn

Inherited functions

From androidx.compose.ui.node.DelegatableNode
open Unit

Invoked when the density changes for this node.

Cmn
open Unit

Invoked when the layout direction changes for this node.

Cmn
From androidx.compose.ui.node.LayoutAwareModifierNode
open Unit

onPlaced is called after the parent LayoutModifier and parent layout has been placed and before child LayoutModifier is placed.

Cmn
open Unit

This method is called when the layout content is remeasured.

Cmn

Inherited properties

From androidx.compose.ui.node.DelegatableNode
Modifier.Node

A reference of the Modifier.Node that holds this node's position in the node hierarchy.

Cmn

Public functions

requestDragAndDropTransfer

fun requestDragAndDropTransfer(offset: Offset): Unit

Requests a drag and drop transfer. isRequestDragAndDropTransferRequired can be used to check if it required to be performed.

Parameters
offset: Offset

the offset value representing position of the input pointer.

Public properties

isRequestDragAndDropTransferRequired

val isRequestDragAndDropTransferRequiredBoolean

Returns a boolean value indicating whether requesting drag and drop transfer is required.

This variable is used to check if the platform requires drag and drop transfer initiated by application explicitly, for example via a custom gesture.