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

android

Inherited functions

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

Convert Dp to Int by rounding

android
open Int

Convert Sp to Int by rounding

android
open Dp

Convert an Int pixel value to Dp.

android
open Dp

Convert a Float pixel value to a Dp

android
open DpSize

Convert a Size to a DpSize.

android
open Float

Convert Dp to pixels.

android
open Float

Convert Sp to pixels.

android
open Rect

Convert a DpRect to a Rect.

android
open Size

Convert a DpSize to a Size.

android
open TextUnit

Convert an Int pixel value to Sp.

android
open TextUnit

Convert a Float pixel value to a Sp

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

Convert Sp to Dp.

android
open TextUnit

Convert Dp to Sp.

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

android

Inherited properties

From androidx.compose.ui.unit.Density
Float

The logical density of the display.

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

Current user preference for the scaling factor for fonts.

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

android
open Boolean

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

android
IntSize

The measured size of the pointer input region.

android
ViewConfiguration

The ViewConfiguration used to tune gesture detectors.

android

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