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

newOffset new value for AnchoredDraggableState.offset.
lastKnownVelocity last known velocity (if known)