SplitPlaceholderRule

@ExperimentalWindowApi public final class SplitPlaceholderRule extends EmbeddingRule, SplitRule

Object
   ↳ EmbeddingRule
     ↳ SplitRule
       ↳ SplitPlaceholderRule

Configuration rules for split placeholders.

Summary

Public fields

final @NonNull Set<@NonNull ActivityFilter>

Read-only filters used to choose when to apply this rule.

final @NonNull Intent

Intent to launch the placeholder activity.

Public constructors

SplitPlaceholderRule(
    Set<ActivityFilter> filters,
    Intent placeholderIntent,
    int minWidth,
    int minSmallestWidth,
    float splitRatio,
    @SplitRule.LayoutDir int layoutDirection
)

Public methods

boolean
equals(Object other)
int

Inherited methods

From class SplitRule
final boolean

Verifies if the provided parent bounds allow to show the split containers side by side.

Public fields

filters

public final @NonNull Set<@NonNull ActivityFilterfilters

Read-only filters used to choose when to apply this rule.

placeholderIntent

public final @NonNull Intent placeholderIntent

Intent to launch the placeholder activity.

Public constructors

SplitPlaceholderRule

public final SplitPlaceholderRule(
    Set<ActivityFilter> filters,
    Intent placeholderIntent,
    int minWidth,
    int minSmallestWidth,
    float splitRatio,
    @SplitRule.LayoutDir int layoutDirection
)

Public methods

equals

public boolean equals(Object other)