ActivityRule

class ActivityRule : EmbeddingRule


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

Summary

Nested types

Builder for ActivityRule.

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Boolean

Whether the activity should always be expanded on launch.

Set<ActivityFilter>

Filters used to choose when to apply this rule.

Inherited properties

From androidx.window.embedding.EmbeddingRule
String?

A unique string to identify this EmbeddingRule, which defaults to null.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

alwaysExpand

Added in 1.0.0
val alwaysExpandBoolean

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.

filters

Added in 1.0.0
val filtersSet<ActivityFilter>

Filters used to choose when to apply this rule. The rule will be applied if any one of the provided filters matches.