Saver
fun Saver(positionalThreshold: (totalDistance: Float) -> Float): Saver<SwipeToDismissBoxState, SwipeToDismissBoxValue>
The default Saver implementation for SwipeToDismissBoxState.
fun Saver(confirmValueChange: (SwipeToDismissBoxValue) -> Boolean, positionalThreshold: (totalDistance: Float) -> Float, density: Density): Saver<SwipeToDismissBoxState, SwipeToDismissBoxValue>
Deprecated
confirmValueChange is deprecated without replacement. Rather than relying on a callback to veto state changes, the anchor set should not include disallowed anchors. See androidx.compose.foundation.samples.AnchoredDraggableDynamicAnchorsSample for an example of using dynamic anchors over confirmValueChange.
Replace with
Saver(positionalThreshold, density)Content copied to clipboard
Saver implementation for SwipeToDismissBoxState.