AnchoredDragScope

Interface

Common
interface AnchoredDragScope

Scope used for suspending anchored drag blocks. Allows to set AnchoredDraggableState.offset to a new value.

Functions

fun dragTo(newOffset: Float, lastKnownVelocity: Float = 0f)

Assign a new value for an offset value for AnchoredDraggableState.

Parameters

newOffsetnew value for AnchoredDraggableState.offset.
lastKnownVelocitylast known velocity (if known)