Google is committed to advancing racial equity for Black communities. See how.

FixedThreshold

@Immutable data class FixedThreshold : ThresholdConfig
kotlin.Any
   ↳ androidx.compose.material.FixedThreshold

A fixed threshold will be at an offset away from the first anchor.

Summary

Public constructors
<init>(offset: Dp)

A fixed threshold will be at an offset away from the first anchor.

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

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

Public constructors

<init>

FixedThreshold(offset: Dp)

A fixed threshold will be at an offset away from the first anchor.

Parameters
offset: Dp The offset (in dp) that the threshold will be at.

Public methods

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.