# SplitInfo

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

*** ** * ** ***

<br />

```
class SplitInfo
```

<br />

*** ** * ** ***

Describes a split pair of two containers with activities.

## Summary

| ### Public functions |
|---|---|
| `operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#contains(android.app.Activity)(activity: https://developer.android.com/reference/android/app/Activity.html)` Whether the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#primaryActivityStack()` or the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#secondaryActivityStack()` in this `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo` contains the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#contains(android.app.Activity)`. |
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#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/SplitInfo#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#toString()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityStack` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#primaryActivityStack()` The `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityStack` representing the primary split container. |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityStack` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#secondaryActivityStack()` The `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityStack` representing the secondary split container. |
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#splitAttributes()` The `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes` of this split pair. |

## Public functions

### contains

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

```
operator fun contains(activity: Activity): Boolean
```

Whether the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#primaryActivityStack()` or the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#secondaryActivityStack()` in this `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo` contains the `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitInfo#contains(android.app.Activity)`.

### equals

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

### hashCode

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

### toString

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

## Public properties

### primaryActivityStack

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

```
val primaryActivityStack: ActivityStack
```

The `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityStack` representing the primary split container.

### secondaryActivityStack

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

```
val secondaryActivityStack: ActivityStack
```

The `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityStack` representing the secondary split container.

### splitAttributes

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

```
val splitAttributes: SplitAttributes
```

The `https://developer.android.com/reference/kotlin/androidx/window/embedding/SplitAttributes` of this split pair.