androidx.compose.material3

RangeSliderState

Class

No hand-written docs yet.

Class that holds information about RangeSlider's active range.

class RangeSliderState(
    activeRangeStart: Float = 0f,
    activeRangeEnd: Float = 1f,
    steps: Int = 0,
    onValueChangeFinished: (() -> Unit)? = null,
    valueRange: ClosedFloatingPointRange<Float> = 0f..1f,
)

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a RangeSliderState.

Properties

activeRangeStart

val activeRangeStart: Float

Float that indicates the start of the current active range for the RangeSlider.

activeRangeEnd

val activeRangeEnd: Float

Float that indicates the end of the current active range for the RangeSlider.

steps

val steps: Int

onValueChangeFinished

val onValueChangeFinished: (() -> Unit)?

valueRange

val valueRange: ClosedFloatingPointRange<Float>

Functions

SaverSince 1.9

fun Saver(
    onValueChangeFinished: (() -> Unit)?,
    valueRange: ClosedFloatingPointRange<Float>,
): Saver<RangeSliderState, *>

The default Saver implementation for RangeSliderState.

Library docs

Class that holds information about RangeSlider's active range.