ActivityRule

public final class ActivityRule extends EmbeddingRule


Layout configuration rules for individual activities with split layouts. Take precedence over SplitPairRule.

Summary

Nested types

public final class ActivityRule.Builder

Builder for ActivityRule.

Public methods

boolean
equals(Object other)
final boolean

Whether the activity should always be expanded on launch.

final @NonNull Set<@NonNull ActivityFilter>

Filters used to choose when to apply this rule.

int
@NonNull String

Inherited methods

From androidx.window.embedding.EmbeddingRule
final String

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

Public methods

equals

public boolean equals(Object other)

getAlwaysExpand

Added in 1.0.0
public final boolean getAlwaysExpand()

Whether the activity should always be expanded on launch. Some activities are supposed to expand to the full task bounds, independent of the state of the split. An example is an activity that blocks all user interactions, such as a warning dialog.

getFilters

Added in 1.0.0
public final @NonNull Set<@NonNull ActivityFiltergetFilters()

Filters used to choose when to apply this rule. The rule will be applied if any one of the provided filters matches.

hashCode

public int hashCode()

toString

public @NonNull String toString()