SliderPositions

Added in 1.0.0
Deprecated in 1.2.0

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.

Summary

Public constructors

SliderPositions(
    initialActiveRange: ClosedFloatingPointRange<Float>,
    initialTickFractions: FloatArray
)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

ClosedFloatingPointRange<Float>

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

Cmn
FloatArray

The discrete points where a tick should be drawn on the track.

Cmn

Public constructors

SliderPositions

SliderPositions(
    initialActiveRange: ClosedFloatingPointRange<Float> = 0f..1f,
    initialTickFractions: FloatArray = floatArrayOf()
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

activeRange

val activeRangeClosedFloatingPointRange<Float>

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

val tickFractionsFloatArray

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.