public class SceneInfo<T : Any>(
public val scene: Scene<T>,
public override val title: String? = null,
public override val url: String? = null,
) : 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 NavigationEventHistory.
Note: title and url are retrieved from Scene.metadata, which by default only includes the metadata of the last NavEntry in Scene.entries. For example, if a scene renders listOf(entryA, entryB), title and url will be populated only if entryB contains the metadata.
Functions
equals
override fun equals(other: Any?): Boolean
Binary-compatible constructor for callers compiled against versions without title and url.
hashCode
override fun hashCode(): Int
toString
override fun toString(): String