ThresholdConfig

Added in 1.0.0
Deprecated in 1.6.0
Known direct subclasses
FixedThreshold

This class is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs.

FractionalThreshold

This class is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs.


Interface to compute a threshold between two anchors/states in a swipeable.

To define a ThresholdConfig, consider using FixedThreshold and FractionalThreshold.

Summary

Public functions

Float
Density.computeThreshold(fromValue: Float, toValue: Float)

Compute the value of the threshold (in pixels), once the values of the anchors are known.

Cmn

Public functions

computeThreshold

fun Density.computeThreshold(fromValue: Float, toValue: Float): Float

Compute the value of the threshold (in pixels), once the values of the anchors are known.