# TestSplitInfo

Added in 1.2.0

*** ** * ** ***


```
public final class TestSplitInfo
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/SplitInfo` | `https://developer.android.com/reference/androidx/window/testing/embedding/TestSplitInfo#createTestSplitInfo(androidx.window.embedding.ActivityStack,androidx.window.embedding.ActivityStack,androidx.window.embedding.SplitAttributes)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/ActivityStack primaryActivityStack, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/ActivityStack secondActivityStack, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/SplitAttributes splitAttributes )` Creates a `https://developer.android.com/reference/androidx/window/embedding/SplitInfo` instance for testing. |

## Public methods

### createTestSplitInfo

Artifact: [androidx.window:window-testing](https://developer.android.com/jetpack/androidx/releases/window) [View Source](https://cs.android.com/search?q=file:androidx/window/testing/embedding/SplitInfoTesting.kt+function:TestSplitInfo) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/window#1.2.0)

```
public static final @NonNull SplitInfo createTestSplitInfo(
    @NonNull ActivityStack primaryActivityStack,
    @NonNull ActivityStack secondActivityStack,
    @NonNull SplitAttributes splitAttributes
)
```

Creates a `https://developer.android.com/reference/androidx/window/embedding/SplitInfo` instance for testing.

It is suggested to construct `https://developer.android.com/reference/androidx/window/testing/embedding/package-summary#TestSplitInfo(androidx.window.embedding.ActivityStack,androidx.window.embedding.ActivityStack,androidx.window.embedding.SplitAttributes)` and `https://developer.android.com/reference/androidx/window/testing/embedding/package-summary#TestSplitInfo(androidx.window.embedding.ActivityStack,androidx.window.embedding.ActivityStack,androidx.window.embedding.SplitAttributes)` by `https://developer.android.com/reference/androidx/window/testing/embedding/package-summary#TestActivityStack(kotlin.collections.List,kotlin.Boolean)`, and `https://developer.android.com/reference/androidx/window/testing/embedding/package-summary#TestSplitInfo(androidx.window.embedding.ActivityStack,androidx.window.embedding.ActivityStack,androidx.window.embedding.SplitAttributes)` by `https://developer.android.com/reference/androidx/window/embedding/SplitAttributes.Builder` APIs

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/ActivityStack primaryActivityStack` | The primary `https://developer.android.com/reference/androidx/window/embedding/ActivityStack` with an empty `https://developer.android.com/reference/androidx/window/embedding/ActivityStack` as the default value. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/ActivityStack secondActivityStack` | The secondary `https://developer.android.com/reference/androidx/window/embedding/ActivityStack` with an empty `https://developer.android.com/reference/androidx/window/embedding/ActivityStack` as the default value. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/SplitAttributes splitAttributes` | The current `https://developer.android.com/reference/androidx/window/embedding/SplitAttributes` for this test split, which defaults to split equally with layout direction `https://developer.android.com/reference/androidx/window/embedding/SplitAttributes.LayoutDirection#LOCALE()`. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/SplitInfo` | A `https://developer.android.com/reference/androidx/window/embedding/SplitInfo` instance for testing |