Package-level declarations

Types

Link copied to clipboard

A SceneStrategy that displays entries that have added dialog to their NavEntry.metadata within a Dialog instance.

Link copied to clipboard
interface OverlayScene<T : Any> : Scene<T>

A specific scene to render 1 or more NavEntry instances as an overlay.

Link copied to clipboard
interface Scene<T : Any>

A specific scene to render 1 or more NavEntrys.

Link copied to clipboard
fun interface SceneDecoratorStrategy<T : Any>

A strategy that tries to decorate a Scene given another Scene.

Link copied to clipboard

Scope used to create a Scene from another Scene.

Link copied to clipboard

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

Link copied to clipboard

Class for holding the state associated with a scene

Link copied to clipboard
fun interface SceneStrategy<T : Any>

A strategy that tries to calculate a Scene given a list of NavEntrys.

Link copied to clipboard

Scope used to create a Scene from a list of NavEntrys.

Link copied to clipboard

A SceneStrategy that always creates a 1-entry Scene simply displaying the last entry in the list.

Functions

Link copied to clipboard
fun <T : Any> NavigationBackHandler(sceneState: SceneState<T>, state: NavigationEventState<SceneInfo<T>> = rememberNavigationEventState(sceneState), onBackCancelled: () -> Unit = {}, onBackCompleted: () -> Unit)

A composable that handles back navigation gestures for a SceneState, driven by a NavigationEventState.

Link copied to clipboard
Link copied to clipboard
fun <T : Any> rememberSceneState(entries: List<NavEntry<T>>, sceneStrategies: List<SceneStrategy<T>>, sceneDecoratorStrategies: List<SceneDecoratorStrategy<T>> = emptyList(), sharedTransitionScope: SharedTransitionScope? = null, onBack: () -> Unit): SceneState<T>

Returns a SceneState that is remembered across compositions based on the parameters.