Class

SceneInfo

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

Source set: Common
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

Source set: Common
override fun equals(other: Any?): Boolean

Binary-compatible constructor for callers compiled against versions without title and url.

hashCode

Source set: Common
override fun hashCode(): Int

toString

Source set: Common
override fun toString(): String
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: