# SliderPositions

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+class:androidx.compose.material3.SliderPositions) Common/AllAndroid/JVM
- Cmn

  ```
  class SliderPositions
  ```

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Not necessary with the introduction of Slider state

Class that holds information about `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)`'s and `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)`'s active track and fractional positions where the discrete ticks should be drawn on the track.

## Summary

| ### Public constructors |
|---|---|
| `[SliderPositions](https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions#SliderPositions(kotlin.ranges.ClosedFloatingPointRange,kotlin.FloatArray))( initialActiveRange: 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>, initialTickFractions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html )` **This function is deprecated.** Not necessary with the introduction of Slider state | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[equals](https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions#equals(kotlin.Any))(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` **This function is deprecated.** Not necessary with the introduction of Slider state | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[hashCode](https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions#hashCode())()` **This function is deprecated.** Not necessary with the introduction of Slider state | Cmn |

| ### Public properties |
|---|---|---|
| `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>` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions#activeRange()` **This property is deprecated.** Not necessary with the introduction of Slider state | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions#tickFractions()` **This property is deprecated.** Not necessary with the introduction of Slider state | Cmn |

## Public constructors

### SliderPositions

Cmn

```
[SliderPositions](https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions#SliderPositions(kotlin.ranges.ClosedFloatingPointRange,kotlin.FloatArray))(
    initialActiveRange: ClosedFloatingPointRange<Float> = 0f..1f,
    initialTickFractions: FloatArray = floatArrayOf()
)
```

> [!CAUTION]
> **This function is deprecated.**   
> Not necessary with the introduction of Slider state

## Public functions

### equals

Cmn

```
open operator fun [equals](https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions#equals(kotlin.Any))(other: Any?): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Not necessary with the introduction of Slider state

### hashCode

Cmn

```
open fun [hashCode](https://developer.android.com/reference/kotlin/androidx/compose/material3/SliderPositions#hashCode())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Not necessary with the introduction of Slider state

## Public properties

### activeRange

Cmn

```
val activeRange: ClosedFloatingPointRange<Float>
```

> [!CAUTION]
> **This property is deprecated.**   
> Not necessary with the introduction of Slider state

`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.ranges/-closed-floating-point-range/index.html` that indicates the current active range for the start to thumb for a `https://developer.android.com/reference/kotlin/androidx/compose/material3/Slider.composable#Slider(kotlin.Float,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors,androidx.compose.foundation.interaction.MutableInteractionSource)` and start thumb to end thumb for a `https://developer.android.com/reference/kotlin/androidx/compose/material3/RangeSlider.composable#RangeSlider(kotlin.ranges.ClosedFloatingPointRange,kotlin.Function1,androidx.compose.ui.Modifier,kotlin.Boolean,kotlin.ranges.ClosedFloatingPointRange,kotlin.Int,kotlin.Function0,androidx.compose.material3.SliderColors)`.

### tickFractions

Cmn

```
val tickFractions: FloatArray
```

> [!CAUTION]
> **This property is deprecated.**   
> Not necessary with the introduction of Slider state

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 `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html`.