SplitRule.FinishBehavior


public final class SplitRule.FinishBehavior


Determines what happens with the associated container when all activities are finished in one of the containers in a split.

For example, given that SplitPairRule.finishPrimaryWithSecondary is ADJACENT and secondary container finishes. The primary associated container is finished if it's adjacent to the secondary container. The primary associated container is not finished if it occupies entire task bounds.

Summary

Public fields

static final @NonNull SplitRule.FinishBehavior

Only finish the associated container when displayed adjacent to the one being finished.

static final @NonNull SplitRule.FinishBehavior

Always finish the associated container independent of the current presentation mode.

static final @NonNull SplitRule.FinishBehavior

Never finish the associated container.

Public methods

@NonNull String

Public fields

ADJACENT

public static final @NonNull SplitRule.FinishBehavior ADJACENT

Only finish the associated container when displayed adjacent to the one being finished. Does not finish the associated one when containers are stacked on top of each other.

ALWAYS

public static final @NonNull SplitRule.FinishBehavior ALWAYS

Always finish the associated container independent of the current presentation mode.

NEVER

public static final @NonNull SplitRule.FinishBehavior NEVER

Never finish the associated container.

Public methods

toString

public @NonNull String toString()