SplitAttributesCalculatorParams
public final 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 methods |
|
|---|---|
final boolean |
Whether the |
final @NonNull SplitAttributes |
|
final @NonNull Configuration |
The parent container's |
final @NonNull WindowLayoutInfo |
The parent container's |
final @NonNull WindowMetrics |
The parent container's |
final String |
The |
@NonNull String |
toString() |
Public methods
areDefaultConstraintsSatisfied
public final boolean areDefaultConstraintsSatisfied()
Whether the parentWindowMetrics satisfies the dimensions and aspect ratios requirements specified in the SplitRule, which are:
getDefaultSplitAttributes
public final @NonNull SplitAttributes getDefaultSplitAttributes()
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.
getParentConfiguration
public final @NonNull Configuration getParentConfiguration()
The parent container's Configuration
getParentWindowLayoutInfo
public final @NonNull WindowLayoutInfo getParentWindowLayoutInfo()
The parent container's WindowLayoutInfo
getParentWindowMetrics
public final @NonNull WindowMetrics getParentWindowMetrics()
The parent container's WindowMetrics
getSplitRuleTag
public final String getSplitRuleTag()
The tag of to apply this SplitRuleSplitAttributes, which is null if the tag is not set.