public final class NavDisplayInfo implements NavigationEventInfo


Represents a snapshot of the visible destinations in a navigation container.

This class provides the necessary context for building animations during navigation gestures, like predictive back. It's a simple data holder that feeds into the NavigationEventState.

During a gesture, the InProgress state provides two instances of this info:

You can use these two snapshots, along with NavigationEventState.progress, to create a smooth visual transition between destinations.

Summary

Public methods

boolean
equals(Object other)
final @NonNull List<@NonNull Object>

A list of unique keys for the visible navigation destinations, typically ordered from the bottom to the top of the back stack.

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getVisibleEntries

Added in 1.0.0-alpha08
public final @NonNull List<@NonNull ObjectgetVisibleEntries()

A list of unique keys for the visible navigation destinations, typically ordered from the bottom to the top of the back stack.

hashCode

public int hashCode()

toString

public @NonNull String toString()