Interface

Scene

A specific scene to render 1 or more androidx.navigation3.runtime.NavEntrys.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
public interface Scene<T : Any>

A specific scene to render 1 or more androidx.navigation3.runtime.NavEntrys.

A scene instance is identified by its key and the class of the Scene, and this change drives the top-level animation based on the SceneStrategy calculating what the current Scene is for the backstack.

The rendering for content should invoke the content for each androidx.navigation3.runtime.NavEntry contained in entries at most once concurrently in a given Scene.

It is valid for two different instances of a Scene to render the same androidx.navigation3.runtime.NavEntry. In this situation, the content for a androidx.navigation3.runtime.NavEntry will only be rendered in the most recent target Scene that it is displayed in, as determined by entries.

Implementations of this interface should be data classes or implement equals and hashcode to ensure that the same Scene is used when appropriate.