Interface

AnchoredDragScope

Scope used for suspending anchored drag blocks.

Source set: Common
public interface AnchoredDragScope

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

Functions

dragTo

Source set: Common
public 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)
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: