Interface

AnchoredDragScope

Scope used for suspending anchored drag blocks.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
interface AnchoredDragScope

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

Functions

dragTo

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)