SplitAttributesCalculatorParams


class SplitAttributesCalculatorParams


The parameter container used to report the current device and window state in SplitController.setSplitAttributesCalculator and references the corresponding SplitRule by splitRuleTag if SplitPairRule.tag is specified.

Summary

Public functions

open String

Public properties

Boolean

Whether the parentWindowMetrics satisfies the dimensions and aspect ratios requirements specified in the SplitRule, which are:

SplitAttributes

The SplitRule.defaultSplitAttributes.

Configuration

The parent container's Configuration

WindowLayoutInfo

The parent container's WindowLayoutInfo

WindowMetrics

The parent container's WindowMetrics

String?

The tag of SplitRule to apply this SplitAttributes, which is null if the tag is not set.

Public functions

toString

open fun toString(): String

Public properties

areDefaultConstraintsSatisfied

Added in 1.2.0
val areDefaultConstraintsSatisfiedBoolean

Whether the parentWindowMetrics satisfies the dimensions and aspect ratios requirements specified in the SplitRule, which are:

defaultSplitAttributes

Added in 1.1.0
val defaultSplitAttributesSplitAttributes

The SplitRule.defaultSplitAttributes. It could be from SplitRule Builder APIs (SplitPairRule.Builder.setDefaultSplitAttributes or SplitPlaceholderRule.Builder.setDefaultSplitAttributes) or from the splitRatio and splitLayoutDirection attributes from static rule definitions.

parentConfiguration

Added in 1.1.0
val parentConfigurationConfiguration

The parent container's Configuration

parentWindowLayoutInfo

Added in 1.1.0
val parentWindowLayoutInfoWindowLayoutInfo

The parent container's WindowLayoutInfo

parentWindowMetrics

Added in 1.1.0
val parentWindowMetricsWindowMetrics

The parent container's WindowMetrics

splitRuleTag

Added in 1.1.0
val splitRuleTagString?

The tag of SplitRule to apply this SplitAttributes, which is null if the tag is not set.

See also
setTag
setTag