ThresholdConfig
Kotlin
|Java
@Stable interface ThresholdConfig
androidx.compose.material.ThresholdConfig |
Interface to compute a threshold between two anchors/states in a swipeable.
To define a ThresholdConfig, consider using FixedThreshold and FractionalThreshold.
Summary
Public methods | |
---|---|
abstract Float |
Density.computeThreshold(fromValue: Float, toValue: Float) Compute the value of the threshold (in pixels), once the values of the anchors are known. |