# SplitAttributesCalculatorParams

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

*** ** * ** ***

<br />

```
class SplitAttributesCalculatorParams
```

<br />

*** ** * ** ***

The parameter container used to report the current device and window state in `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitController#setSplitAttributesCalculator(kotlin.Function1)` and references the corresponding `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule` by `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#splitRuleTag()` if `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingRule#tag()` is specified.

## Summary

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#toString()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#areDefaultConstraintsSatisfied()` Whether the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#(androidx.window.layout.WindowMetrics,android.content.res.Configuration,androidx.window.layout.WindowLayoutInfo,androidx.window.embedding.SplitAttributes,kotlin.Boolean,kotlin.String)` satisfies the dimensions and aspect ratios requirements specified in the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule`, which are: |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#defaultSplitAttributes()` The `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#defaultSplitAttributes()`. |
| `https://developer.android.com/reference/android/content/res/Configuration.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#parentConfiguration()` The parent container's `https://developer.android.com/reference/android/content/res/Configuration.html` |
| `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#parentWindowLayoutInfo()` The parent container's `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo` |
| `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowMetrics` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#parentWindowMetrics()` The parent container's `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowMetrics` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#splitRuleTag()` The `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingRule#tag()` to apply this `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes`, which is `null` if the tag is not set. |

## Public functions

### toString

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

## Public properties

### areDefaultConstraintsSatisfied

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

```
val areDefaultConstraintsSatisfied: Boolean
```

Whether the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributesCalculatorParams#(androidx.window.layout.WindowMetrics,android.content.res.Configuration,androidx.window.layout.WindowLayoutInfo,androidx.window.embedding.SplitAttributes,kotlin.Boolean,kotlin.String)` satisfies the dimensions and aspect ratios requirements specified in the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule`, which are:

- `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#minWidthDp()`

- `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#minHeightDp()`

- `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#minSmallestWidthDp()`

- `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#maxAspectRatioInPortrait()`

- `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#maxAspectRatioInLandscape()`

### defaultSplitAttributes

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

```
val defaultSplitAttributes: SplitAttributes
```

The `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule#defaultSplitAttributes()`. It could be from `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitRule` Builder APIs (`https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPairRule.Builder#setDefaultSplitAttributes(androidx.window.embedding.SplitAttributes)` or `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setDefaultSplitAttributes(androidx.window.embedding.SplitAttributes)`) or from the `splitRatio` and `splitLayoutDirection` attributes from static rule definitions.

### parentConfiguration

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

```
val parentConfiguration: Configuration
```

The parent container's `https://developer.android.com/reference/android/content/res/Configuration.html`

### parentWindowLayoutInfo

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

```
val parentWindowLayoutInfo: WindowLayoutInfo
```

The parent container's `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowLayoutInfo`

### parentWindowMetrics

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

```
val parentWindowMetrics: WindowMetrics
```

The parent container's `https://developer.android.com/reference/kotlin/androidx/window/layout/WindowMetrics`

### splitRuleTag

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

```
val splitRuleTag: String?
```

The `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingRule#tag()` to apply this `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes`, which is `null` if the tag is not set.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPairRule.Builder#setTag(kotlin.String)` |   |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitPlaceholderRule.Builder#setTag(kotlin.String)` |   |