ActivityRule

@ExperimentalWindowApi public final class ActivityRule extends EmbeddingRule

Object
   ↳ EmbeddingRule
     ↳ ActivityRule

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

Summary

Public fields

final boolean

Whether the activity should always be expanded on launch.

final @NonNull Set<@NonNull ActivityFilter>

Read-only filters used to choose when to apply this rule.

Public constructors

ActivityRule(Set<ActivityFilter> filters, boolean alwaysExpand)

Public methods

boolean
equals(Object other)
int

Public fields

alwaysExpand

public final boolean alwaysExpand

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, like a warning dialog.

filters

public final @NonNull Set<@NonNull ActivityFilterfilters

Read-only filters used to choose when to apply this rule.

Public constructors

ActivityRule

public final ActivityRule(Set<ActivityFilter> filters, boolean alwaysExpand)

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()