SplitPinRule


public final class SplitPinRule extends SplitRule

Split configuration rules for pinning an ActivityStack. Define how the pinned ActivityStack should be displayed side-by-side with the other ActivityStack.

Summary

Nested types

public final class SplitPinRule.Builder

Builder for SplitPinRule.

Public methods

boolean
equals(Object other)
int
final boolean

Whether this rule should be sticky.

@NonNull String

Inherited methods

From androidx.window.embedding.EmbeddingRule
final String

A unique string to identify this EmbeddingRule, which defaults to null.

From androidx.window.embedding.SplitRule

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

isSticky

Added in 1.4.0
public final boolean isSticky()

Whether this rule should be sticky. If the value is false, this rule be removed whenever the pinned ActivityStack is unpinned. Set to true if the rule should be applied whenever once again possible (e.g. the host Task bounds satisfies the size and aspect ratio requirements).

toString

public @NonNull String toString()