ActivityStack

@ExperimentalWindowApi public final class ActivityStack


A container that holds a stack of activities, overlapping and bound to the same rectangle on the screen.

Summary

Public constructors

ActivityStack(List<Activity> activities, boolean isEmpty)

Public methods

final boolean
contains(Activity activity)
boolean
equals(Object other)
int
final boolean

Returns true if there's no Activity running in this ActivityStack.

@NonNull String

Public constructors

ActivityStack

public final ActivityStack(List<Activity> activities, boolean isEmpty)

Public methods

contains

public final boolean contains(Activity activity)

equals

public boolean equals(Object other)

hashCode

public int hashCode()

isEmpty

public final boolean isEmpty()

Returns true if there's no Activity running in this ActivityStack.

Note that activities only report Activity in the process used to create this ActivityStack. That said, if this ActivityStack only contains activities from other process(es), activities will return empty list, and this method will return false.

toString

public @NonNull String toString()