MosaicSliderState

class MosaicSliderState(initialValue: Float, val range: ClosedFloatingPointRange<Float>, disabledRange: ClosedFloatingPointRange<Float>, valueDistribution: SliderValuesDistribution) : DraggableState

A compose state for the Slider component Responsible for managing internal properties such as offset value and drag / click behaviours

Constructors

Link copied to clipboard
constructor(initialValue: Float, range: ClosedFloatingPointRange<Float>, disabledRange: ClosedFloatingPointRange<Float>, valueDistribution: SliderValuesDistribution)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Current value of the slider If value of the slider is out of the range it will be coerced into it If the value of the slider is inside the disabledRange It will be coerced int closes available range that is not disabled

Functions

Link copied to clipboard
open override fun dispatchRawDelta(delta: Float)
Link copied to clipboard
open suspend override fun drag(dragPriority: MutatePriority, block: suspend DragScope.() -> Unit)