# DividerAttributes.DragRange.SplitRatioDragRange

Artifact: [androidx.window:window](https://developer.android.com/jetpack/androidx/releases/window) [View Source](https://cs.android.com/search?q=file:androidx/window/embedding/DividerAttributes.kt+class:androidx.window.embedding.DividerAttributes.DragRange.SplitRatioDragRange) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

*** ** * ** ***

<br />

```
class DividerAttributes.DragRange.SplitRatioDragRange : DividerAttributes.DragRange
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.window.embedding.DividerAttributes.DragRange](https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange) ||
|   | ↳ | [androidx.window.embedding.DividerAttributes.DragRange.SplitRatioDragRange](https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange) |

*** ** * ** ***

A drag range represented as an interval of the primary container's split ratios.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the provided values are invalid. |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#SplitRatioDragRange(kotlin.Float,kotlin.Float)( minRatio: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, maxRatio: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` constructs a new `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#toString()()` |

| ### Public properties |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#maxRatio()` the maximum split ratio of the primary container that the user is allowed to drag to. |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#minRatio()` the minimum split ratio of the primary container that the user is allowed to drag to. |

## Public constructors

### SplitRatioDragRange

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

```
SplitRatioDragRange(
    minRatio: @FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) Float,
    maxRatio: @FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) Float
)
```

constructs a new `https://developer.android.com/reference/kotlin/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange`

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### maxRatio

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

```
val maxRatio: @FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) Float
```

the maximum split ratio of the primary container that the user is allowed to drag to. When the divider is dragged beyond this ratio, the system will choose to either fully expand the primary container, or move the divider back to this ratio.

### minRatio

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

```
val minRatio: @FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) Float
```

the minimum split ratio of the primary container that the user is allowed to drag to. When the divider is dragged beyond this ratio, the system will choose to either fully expand the secondary container, or move the divider back to this ratio.