EmbeddingRule


abstract class EmbeddingRule

Known direct subclasses
ActivityRule

Layout configuration rules for individual activities with split layouts.

SplitRule

Split configuration rules for activities that are launched to side in a split.

Known indirect subclasses
SplitPairRule

Split configuration rules for activity pairs.

SplitPinRule

Split configuration rules for pinning an ActivityStack.

SplitPlaceholderRule

Configuration rules for split placeholders.


Base abstract class for activity embedding presentation rules, such as SplitPairRule and ActivityRule. Allows grouping different rule types together when updating.

Summary

Public functions

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

Public properties

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

Public properties

tag

Added in 1.1.0
val tagString?

A unique string to identify this EmbeddingRule, which defaults to null. The suggested usage is to set the tag in the corresponding rule builder to be able to differentiate between different rules in the SplitAttributesCalculatorParams.splitRuleTag. For example, it can be used to compute the right SplitAttributes for the right split rule in callback set in SplitController.setSplitAttributesCalculator.

See also
addRule