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 ActivityStack contains the activity.

boolean
equals(Object other)
int
final boolean

Whether there is no Activity running in this ActivityStack.

@NonNull String

Public methods

contains

Added in 1.0.0
public final boolean contains(@NonNull Activity activity)

Whether this ActivityStack contains the activity.

equals

public boolean equals(Object other)

hashCode

public int hashCode()

isEmpty

Added in 1.0.0
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.

toString

public @NonNull String toString()