TestSplitInfo

Added in 1.2.0

public final class TestSplitInfo


Summary

Public methods

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

Creates a SplitInfo instance for testing.

Public methods

createTestSplitInfo

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

Creates a SplitInfo instance for testing.

It is suggested to construct primaryActivityStack and secondActivityStack by TestActivityStack, and splitAttributes by SplitAttributes.Builder APIs

Parameters
@NonNull ActivityStack primaryActivityStack

The primary ActivityStack with an empty ActivityStack as the default value.

@NonNull ActivityStack secondActivityStack

The secondary ActivityStack with an empty ActivityStack as the default value.

@NonNull SplitAttributes splitAttributes

The current SplitAttributes for this test split, which defaults to split equally with layout direction SplitAttributes.LayoutDirection.LOCALE.

Returns
@NonNull SplitInfo

A SplitInfo instance for testing