FixedThreshold
-
Cmn
@ExperimentalMaterialApi
data class FixedThreshold : ThresholdConfig
A fixed threshold will be at an offset away from the first anchor.
Summary
Public constructors |
|
|---|---|
This function is deprecated. Material's Swipeable has been replaced by Foundation's AnchoredDraggable APIs. |
Cmn
|
Public functions |
||
|---|---|---|
open 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 constructors
FixedThreshold
FixedThreshold(offset: Dp)
| Parameters | |
|---|---|
offset: Dp |
The offset (in dp) that the threshold will be at. |
Public functions
computeThreshold
open fun Density.computeThreshold(fromValue: Float, toValue: Float): Float
Compute the value of the threshold (in pixels), once the values of the anchors are known.