# rememberRangeSliderState

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSliderState` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/rememberRangeSliderState.composable#rememberRangeSliderState(kotlin.Float,kotlin.Float,kotlin.Int,kotlin.ranges.ClosedFloatingPointRange)( startValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, endValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, steps: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, trackRange: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-closed-floating-point-range/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html> )` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSliderState` that is remembered across compositions. | Cmn |

## Functions

### rememberRangeSliderState

Cmn Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/Slider.kt+function:rememberRangeSliderState)

```
@Composable
fun rememberRangeSliderState(
    startValue: Float = 0.0f,
    endValue: Float = 1.0f,
    steps: @IntRange(from = 0) Int = 0,
    trackRange: ClosedFloatingPointRange<Float> = 0f..1f
): RangeSliderState
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSliderState` that is remembered across compositions.

Changes to the provided initial values will **not** result in the state being recreated or changed in any way if it has already been created.

| Parameters |
|---|---|
| `startValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 0.0f` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` that indicates the initial start value of the selected range (for the start thumb). This represents a specific position on the track and is coerced to the bounds of `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#rememberRangeSliderState(kotlin.Float,kotlin.Float,kotlin.Int,kotlin.ranges.ClosedFloatingPointRange)`. |
| `endValue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` that indicates the initial end value of the selected range (for the end thumb). This represents a specific position on the track and is coerced to the bounds of `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#rememberRangeSliderState(kotlin.Float,kotlin.Float,kotlin.Int,kotlin.ranges.ClosedFloatingPointRange)`. |
| `steps: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | if positive, specifies the amount of discrete allowable values between the endpoints of `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#rememberRangeSliderState(kotlin.Float,kotlin.Float,kotlin.Int,kotlin.ranges.ClosedFloatingPointRange)`. For example, a range from 0 to 10 with 4 `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#rememberRangeSliderState(kotlin.Float,kotlin.Float,kotlin.Int,kotlin.ranges.ClosedFloatingPointRange)` allows 4 values evenly distributed between 0 and 10 (i.e., 2, 4, 6, 8). If `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#rememberRangeSliderState(kotlin.Float,kotlin.Float,kotlin.Int,kotlin.ranges.ClosedFloatingPointRange)` is 0, the slider will behave continuously and allow any value from the range. Must not be negative. |
| `trackRange: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-closed-floating-point-range/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html> = 0f..1f` | the full range of values that the entire Range Slider track represents. This defines the absolute boundaries/constraints of the slider (from minimum to maximum), and the individual thumb values (`https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#rememberRangeSliderState(kotlin.Float,kotlin.Float,kotlin.Int,kotlin.ranges.ClosedFloatingPointRange)` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#rememberRangeSliderState(kotlin.Float,kotlin.Float,kotlin.Int,kotlin.ranges.ClosedFloatingPointRange)`) are coerced to this range. |