Start native apps faster with the Composables CLI ->
Class

SliderPositions

Class that holds information about Slider's and RangeSlider's active track and fractional positions where the discrete ticks should be drawn on the track.

Source set: Common
public class SliderPositions(
    initialActiveRange: ClosedFloatingPointRange<Float> = 0f..1f,
    initialTickFractions: FloatArray = floatArrayOf(),
)

Class that holds information about Slider's and RangeSlider's active track and fractional positions where the discrete ticks should be drawn on the track.

Properties

activeRange

Source set: Common
public var activeRange: ClosedFloatingPointRange<Float> by mutableStateOf(initialActiveRange)

ClosedFloatingPointRange that indicates the current active range for the start to thumb for a Slider and start thumb to end thumb for a RangeSlider.

tickFractions

Source set: Common
public var tickFractions: FloatArray by mutableStateOf(initialTickFractions)

The discrete points where a tick should be drawn on the track. Each value of tickFractions should be within the range 0f, 1f. If the track is continuous, then tickFractions will be an empty FloatArray.

Functions

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int