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.

Summary

Public functions

Unit

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

Cmn

Inherited functions

From androidx.compose.ui.unit.Density
open Int

Convert Dp to Int by rounding

Cmn
open Int

Convert Sp to Int by rounding

Cmn
open Dp

Convert an Int pixel value to Dp.

Cmn
open Dp

Convert a Float pixel value to a Dp

Cmn
open DpSize

Convert a Size to a DpSize.

Cmn
open Float

Convert Dp to pixels.

Cmn
open Float

Convert Sp to pixels.

Cmn
open Rect

Convert a DpRect to a Rect.

Cmn
open Size

Convert a DpSize to a Size.

Cmn
open TextUnit

Convert an Int pixel value to Sp.

Cmn
open TextUnit

Convert a Float pixel value to a Sp

Cmn
From androidx.compose.ui.unit.FontScaling
open Dp

Convert Sp to Dp.

Cmn
open TextUnit

Convert Dp to Sp.

Cmn
From androidx.compose.ui.input.pointer.PointerInputScope
suspend R
<R : Any?> awaitPointerEventScope(block: suspend AwaitPointerEventScope.() -> R)

Suspend and install a pointer input block that can await input events and respond to them immediately.

Cmn

Inherited properties

From androidx.compose.ui.unit.Density
Float

The logical density of the display.

Cmn
From androidx.compose.ui.unit.FontScaling
Float

Current user preference for the scaling factor for fonts.

Cmn
From androidx.compose.ui.input.pointer.PointerInputScope
open Size

The additional space applied to each side of the layout area when the layout is smaller than ViewConfiguration.minimumTouchTargetSize.

Cmn
open Boolean

Intercept pointer input that children receive even if the pointer is out of bounds.

Cmn
IntSize

The measured size of the pointer input region.

Cmn
ViewConfiguration

The ViewConfiguration used to tune gesture detectors.

Cmn

Public functions

startTransfer

fun startTransfer(transferData: DragAndDropTransferData): Unit

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