SplitPairFilter

@ExperimentalWindowApi public final class SplitPairFilter


Filter used to find if a pair of activities should be put in a split. Applied to the base / primary activity and an intent starting a secondary activity.

Summary

Public fields

final @NonNull ComponentName

Component name of the primary activity in the split.

final String

Action used for secondary activity launch.

final @NonNull ComponentName

Component name in the intent for the secondary activity in the split.

Public constructors

SplitPairFilter(
    ComponentName primaryActivityName,
    ComponentName secondaryActivityName,
    String secondaryActivityIntentAction
)

Public methods

boolean
equals(Object other)
int
final boolean
matchesActivityIntentPair(
    Activity primaryActivity,
    Intent secondaryActivityIntent
)
final boolean
matchesActivityPair(
    Activity primaryActivity,
    Activity secondaryActivity
)
@NonNull String

Public fields

primaryActivityName

public final @NonNull ComponentName primaryActivityName

Component name of the primary activity in the split. Must be non-empty. Can contain a single wildcard at the end. Supported formats: "package/class", "package/*", "package/suffix.*", "*/*"

secondaryActivityIntentAction

public final String secondaryActivityIntentAction

Action used for secondary activity launch.

secondaryActivityName

public final @NonNull ComponentName secondaryActivityName

Component name in the intent for the secondary activity in the split. Must be non-empty. Can contain a single wildcard at the end. Supported formats:

  • package/class
  • package/\*
  • package/suffix.\*
  • \*\/\*
  • Public constructors

    SplitPairFilter

    public final SplitPairFilter(
        ComponentName primaryActivityName,
        ComponentName secondaryActivityName,
        String secondaryActivityIntentAction
    )

    Public methods

    equal