ActivityRule.Builder

class ActivityRule.Builder


Builder for ActivityRule.

Summary

Public constructors

Public functions

ActivityRule

Builds an ActivityRule instance.

ActivityRule.Builder
setAlwaysExpand(alwaysExpand: Boolean)

Sets whether the activity should always be expanded on launch.

ActivityRule.Builder
setTag(tag: String?)

Sets a unique string to identify this ActivityRule, which defaults to null.

Public constructors

Builder

Added in 1.1.0
Builder(filters: Set<ActivityFilter>)
Parameters
filters: Set<ActivityFilter>

See ActivityRule.filters.

Public functions

build

Added in 1.1.0
fun build(): ActivityRule

Builds an ActivityRule instance.

Returns
ActivityRule

The new ActivityRule instance.

setAlwaysExpand

Added in 1.1.0
fun setAlwaysExpand(alwaysExpand: Boolean): ActivityRule.Builder

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
alwaysExpand: Boolean

whether the activity should always be expanded on launch.

setTag

Added in 1.1.0
fun setTag(tag: String?): ActivityRule.Builder

Sets a unique string to identify this ActivityRule, which defaults to null.

Parameters
tag: String?

unique string to identify this ActivityRule.