SplitPairFilter
class SplitPairFilter
Filter for SplitPairRule and used to find if a pair of activities should be put in a split. It is used when a new activity is started from the primary activity. If the filter matches the primary Activity.getComponentName and the new started activity Intent, it matches the SplitPairRule that holds this filter.
Summary
Public constructors |
|---|
SplitPairFilter( |
Public functions |
|
|---|---|
open operator Boolean |
|
open Int |
hashCode() |
Boolean |
matchesActivityIntentPair(Returns |
Boolean |
matchesActivityPair(Returns |
open String |
toString() |
Public properties |
|
|---|---|
ComponentName |
|
String? |
|
ComponentName |
Public constructors
SplitPairFilter
SplitPairFilter(
primaryActivityName: ComponentName,
secondaryActivityName: ComponentName,
secondaryActivityIntentAction: String?
)
| Parameters | |
|---|---|
primaryActivityName: ComponentName |
Component name of the primary activity in the split. Must be non-empty. Can contain a single wildcard at the end. Supported formats:
|
secondaryActivityName: ComponentName |
Component name of the secondary activity in the split. Must be non-empty. Can contain a single wildcard at the end. Supported formats:
|
secondaryActivityIntentAction: String? |
action used for secondary activity launch Intent. If it is not |
Public functions
matchesActivityIntentPair
fun matchesActivityIntentPair(
primaryActivity: Activity,
secondaryActivityIntent: Intent
): Boolean
Returns true if this SplitPairFilter matches the primaryActivity and the secondaryActivityIntent If the SplitPairFilter is created with secondaryActivityIntentAction, the filter will also compare it with Intent.getAction of the secondaryActivityIntent.
| Parameters | |
|---|---|
primaryActivity: Activity |
the |
secondaryActivityIntent: Intent |
the |
matchesActivityPair
fun matchesActivityPair(
primaryActivity: Activity,
secondaryActivity: Activity
): Boolean
Returns true if this SplitPairFilter matches primaryActivity and secondaryActivity. If the SplitPairFilter is created with secondaryActivityIntentAction, the filter will also compare it with Intent.getAction of Activity.getIntent of secondaryActivity.
| Parameters | |
|---|---|
primaryActivity: Activity |
the |
secondaryActivity: Activity |
the |