androidx.compose.foundation
progressSemantics
Function · from org.jetbrains.compose.foundation:foundation:1.12.2
No hand-written docs yet.
Contains the semantics required for a determinate progress indicator or the progress part of a slider, that represents progress within valueRange. value outside of this range will be coerced into this range.
With value, valueRange, steps
fun Modifier.progressSemantics(
value: Float,
valueRange: ClosedFloatingPointRange<Float> = 0f..1f,
steps: Int = 0,
): Modifier
value: FloatRequired
value: FloatRequiredcurrent value of the ProgressIndicator/Slider. If outside of valueRange provided, value will be coerced to this range. Must not be NaN.
valueRange: ClosedFloatingPointRange<Float>Optional
valueRange: ClosedFloatingPointRange<Float>OptionalDefault: 0f..1f
range of values that value can take. Passed value will be coerced to this range
steps: IntOptional
steps: IntOptionalDefault: 0
if greater than 0, specifies the amounts of discrete values, evenly distributed between across the whole value range. If 0, any value from the range specified is allowed. Must not be negative.
Form 2
fun Modifier.progressSemantics(): Modifier
Library docs
Contains the semantics required for a determinate progress indicator or the progress part of a
slider, that represents progress within valueRange. value outside of this range will be
coerced into this range.