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.BuilderBuilder for |
Public methods |
|
|---|---|
boolean |
|
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 |
hashCode() |
@NonNull String |
toString() |
Inherited methods |
||
|---|---|---|
|
Public methods
getAlwaysExpand
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
public final @NonNull Set<@NonNull ActivityFilter> getFilters()
Filters used to choose when to apply this rule. The rule will be applied if any one of the provided filters matches.