rememberMosaicSliderState

fun rememberMosaicSliderState(initialValue: Float, range: ClosedFloatingPointRange<Float> = 0f..1f, valueDistribution: SliderValuesDistribution = SliderValuesDistribution.Linear, disabledRange: ClosedFloatingPointRange<Float> = EmptyRange): MosaicSliderState

Creates a MosaicSliderState that holds the state of a slider

Return

a MosaicSliderState that holds the state of a slider

Parameters

initialValue

the initial value of the slider

range

the range of the slider

valueDistribution

the distribution of the slider values

disabledRange

the range of the slider that is disabled