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

```
public final class SplitInfo
```

<br />

*** ** * ** ***

Describes a split pair of two containers with activities.

## Summary

| ### Public methods |
|---|---|
| `final boolean` | `https://developer.android.com/reference/androidx/window/embedding/SplitInfo#contains(android.app.Activity)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/app/Activity.html activity)` Whether the `https://developer.android.com/reference/androidx/window/embedding/SplitInfo#primaryActivityStack()` or the `https://developer.android.com/reference/androidx/window/embedding/SplitInfo#secondaryActivityStack()` in this `https://developer.android.com/reference/androidx/window/embedding/SplitInfo` contains the `https://developer.android.com/reference/androidx/window/embedding/SplitInfo#contains(android.app.Activity)`. |
| `boolean` | `https://developer.android.com/reference/androidx/window/embedding/SplitInfo#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/ActivityStack` | `https://developer.android.com/reference/androidx/window/embedding/SplitInfo#getPrimaryActivityStack()()` The `https://developer.android.com/reference/androidx/window/embedding/ActivityStack` representing the primary split container. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/ActivityStack` | `https://developer.android.com/reference/androidx/window/embedding/SplitInfo#getSecondaryActivityStack()()` The `https://developer.android.com/reference/androidx/window/embedding/ActivityStack` representing the secondary split container. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/SplitAttributes` | `https://developer.android.com/reference/androidx/window/embedding/SplitInfo#getSplitAttributes()()` The `https://developer.android.com/reference/androidx/window/embedding/SplitAttributes` of this split pair. |
| `int` | `https://developer.android.com/reference/androidx/window/embedding/SplitInfo#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/SplitInfo#toString()()` |

## Public methods

### contains

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

```
public final boolean contains(@NonNull Activity activity)
```

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

### equals

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

### getPrimaryActivityStack

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

```
public final @NonNull ActivityStack getPrimaryActivityStack()
```

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

### getSecondaryActivityStack

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

```
public final @NonNull ActivityStack getSecondaryActivityStack()
```

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

### getSplitAttributes

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

```
public final @NonNull SplitAttributes getSplitAttributes()
```

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

### hashCode

```
public int hashCode()
```

### toString

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