ActivityRule.Builder
public final class ActivityRule.Builder
Builder for ActivityRule.
Summary
Public constructors |
|---|
Builder(@NonNull Set<@NonNull ActivityFilter> filters) |
Public methods |
|
|---|---|
final @NonNull ActivityRule |
build()Builds an |
final @NonNull ActivityRule.Builder |
setAlwaysExpand(boolean alwaysExpand)Sets whether the activity should always be expanded on launch. |
final @NonNull ActivityRule.Builder |
Sets a unique string to identify this |
Public constructors
Builder
public Builder(@NonNull Set<@NonNull ActivityFilter> filters)
| Parameters | |
|---|---|
@NonNull Set<@NonNull ActivityFilter> filters |
See |
Public methods
build
public final @NonNull ActivityRule build()
Builds an ActivityRule instance.
| Returns | |
|---|---|
@NonNull ActivityRule |
The new |
setAlwaysExpand
public final @NonNull ActivityRule.Builder setAlwaysExpand(boolean alwaysExpand)
Sets 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.
| Parameters | |
|---|---|
boolean alwaysExpand |
whether the activity should always be expanded on launch. |
setTag
public final @NonNull ActivityRule.Builder setTag(String tag)
Sets a unique string to identify this ActivityRule, which defaults to null.
| Parameters | |
|---|---|
String tag |
unique string to identify this |