# 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)

*** ** * ** ***


```
public final class DividerAttributes.DragRange.SplitRatioDragRange extends DividerAttributes.DragRange
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.window.embedding.DividerAttributes.DragRange](https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DragRange) ||
|   | ↳ | [androidx.window.embedding.DividerAttributes.DragRange.SplitRatioDragRange](https://developer.android.com/reference/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/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#SplitRatioDragRange(kotlin.Float,kotlin.Float)( @https://developer.android.com/reference/androidx/annotation/FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) float minRatio, @https://developer.android.com/reference/androidx/annotation/FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) float maxRatio )` constructs a new `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final float` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#getMaxRatio()()` the maximum split ratio of the primary container that the user is allowed to drag to. |
| `final float` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#getMinRatio()()` the minimum split ratio of the primary container that the user is allowed to drag to. |
| `int` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/window/embedding/DividerAttributes.DragRange.SplitRatioDragRange#toString()()` |

## Public constructors

### SplitRatioDragRange

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

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

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

## Public methods

### equals

```
public boolean equals(Object other)
```

### getMaxRatio

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

```
public final float getMaxRatio()
```

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.

### getMinRatio

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

```
public final float getMinRatio()
```

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.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```