RemoteSlider
Source set: Android
@Composable
public fun RemoteSlider(
value: RemoteFloat,
steps: Int = 0,
modifier: RemoteModifier = RemoteModifier,
decreaseAction: Action = Action.Empty,
increaseAction: Action = Action.Empty,
enabled: RemoteBoolean = true.rb,
valueRange: ClosedFloatingPointRange<Float> = 0f..(steps + 1).toFloat(),
segmented: Boolean = steps <= RemoteSliderDefaults.MaxSegmentSteps,
shape: RemoteShape = RemoteSliderDefaults.shape,
colors: RemoteSliderColors = RemoteSliderDefaults.sliderColors(),
decreaseIcon: @Composable @RemoteComposable () -> Unit = {
RemoteSliderDefaults.DecreaseIcon()
},
increaseIcon: @Composable @RemoteComposable () -> Unit = {
RemoteSliderDefaults.IncreaseIcon()
},
)
RemoteSlider allows users to make a selection from a range of values.
Parameters
| value | Current value of the Slider. |
| steps | The number of steps between the min and max value of the valueRange. |
| modifier | Modifiers to be applied to the Slider. |
| decreaseAction | Action to perform when the decrease button is clicked. |
| increaseAction | Action to perform when the increase button is clicked. |
| enabled | Controls the enabled state of the Slider. Note that only constant values are currently supported for enabled for click handling. |
| valueRange | The range of values that this slider can take. |
| segmented | Controls whether the slider displays segment indicators. |
| shape | Shape of the slider container. |
| colors | RemoteSliderColors that will be used to resolve the colors used for this RemoteSlider. |
| decreaseIcon | A slot for an icon which is placed on the decrease button. |
| increaseIcon | A slot for an icon which is placed on the increase button. |
RemoteSlider
Source set: Android
@Composable
public fun RemoteSlider(
value: RemoteInt,
steps: Int = 0,
modifier: RemoteModifier = RemoteModifier,
decreaseAction: Action = Action.Empty,
increaseAction: Action = Action.Empty,
enabled: RemoteBoolean = true.rb,
valueRange: ClosedFloatingPointRange<Float> = 0f..(steps + 1).toFloat(),
segmented: Boolean = steps <= RemoteSliderDefaults.MaxSegmentSteps,
shape: RemoteShape = RemoteSliderDefaults.shape,
colors: RemoteSliderColors = RemoteSliderDefaults.sliderColors(),
decreaseIcon: @Composable @RemoteComposable () -> Unit = {
RemoteSliderDefaults.DecreaseIcon()
},
increaseIcon: @Composable @RemoteComposable () -> Unit = {
RemoteSliderDefaults.IncreaseIcon()
},
): Unit
RemoteSlider allows users to make a selection from a range of values.
Parameters
| value | Current value of the Slider. |
| steps | The number of steps between the min and max value of the valueRange. |
| modifier | Modifiers to be applied to the Slider. |
| decreaseAction | Action to perform when the decrease button is clicked. |
| increaseAction | Action to perform when the increase button is clicked. |
| enabled | Controls the enabled state of the Slider. Note that only constant values are currently supported for enabled for click handling. |
| valueRange | The range of values that this slider can take. |
| segmented | Controls whether the slider displays segment indicators. |
| shape | Shape of the slider container. |
| colors | RemoteSliderColors that will be used to resolve the colors used for this RemoteSlider. |
| decreaseIcon | A slot for an icon which is placed on the decrease button. |
| increaseIcon | A slot for an icon which is placed on the increase button. |