ActivityStack
public final class ActivityStack
A container that holds a stack of activities, overlapping and bound to the same rectangle on the screen.
Summary
Public methods |
|
|---|---|
final boolean |
Whether this |
boolean |
|
int |
hashCode() |
final boolean |
isEmpty()Whether there is no |
@NonNull String |
toString() |
Public methods
contains
public final boolean contains(@NonNull Activity activity)
Whether this ActivityStack contains the activity.
isEmpty
public final boolean isEmpty()
Whether there is no Activity running in this ActivityStack.
Note that activitiesInProcess only report Activity in the process used to create this ActivityStack. That said, if this ActivityStack only contains activities from other process(es), activitiesInProcess will return an empty list, but this method will return false.