NavigationEventHistory


public final class NavigationEventHistory


Represents an immutable snapshot of the navigation history stack.

This object tracks the combined navigation stack (mergedHistory) from the root to the currently active destination, indicated by currentIndex.

This state is explicitly separate from transition state (which tracks gesture progress). NavigationEventHistory is stable during gestures and only updates when the active handler changes or when the active handler's info (its local stack) is updated.

Summary

Public methods

boolean
equals(Object other)
final int

Index of current in mergedHistory.

final @NonNull List<@NonNull NavigationEventInfo>

Combined stack from root to leaf.

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getCurrentIndex

Added in 1.0.0-alpha09
public final int getCurrentIndex()

Index of current in mergedHistory.

getMergedHistory

Added in 1.0.0-alpha09
public final @NonNull List<@NonNull NavigationEventInfogetMergedHistory()

Combined stack from root to leaf.

hashCode

public int hashCode()

toString

public @NonNull String toString()