ActivityRule.Builder


public final class ActivityRule.Builder


Builder for ActivityRule.

Summary

Public constructors

Public methods

final @NonNull ActivityRule

Builds an ActivityRule instance.

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 ActivityRule, which defaults to null.

Public constructors

Builder

Added in 1.1.0
public Builder(@NonNull Set<@NonNull ActivityFilter> filters)
Parameters
@NonNull Set<@NonNull ActivityFilter> filters

See ActivityRule.filters.

Public methods

build

Added in 1.1.0
public final @NonNull ActivityRule build()

Builds an ActivityRule instance.

Returns
@NonNull ActivityRule

The new ActivityRule instance.

setAlwaysExpand

Added in 1.1.0
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

Added in 1.1.0
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 ActivityRule.