AnchoredDragScope


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

See also
anchoredDrag

to learn how to start the anchored drag and get the access to this scope.

Summary

Public functions

Unit
dragTo(newOffset: Float, lastKnownVelocity: Float)

Assign a new value for an offset value for AnchoredDraggableState.

Cmn

Public functions

dragTo

fun dragTo(newOffset: Float, lastKnownVelocity: Float = 0.0f): Unit

Assign a new value for an offset value for AnchoredDraggableState.

Parameters
newOffset: Float

new value for AnchoredDraggableState.offset.

lastKnownVelocity: Float = 0.0f

last known velocity (if known)