Package-level declarations

Types

Link copied to clipboard
data class LayerAnimationState(val currentEntry: NavigationEntry, val previousEntry: NavigationEntry?, val animationDecision: AnimationDecision?, val aliveEntries: List<NavigationEntry>, val isBackNavigation: Boolean)

Animation state for content layer rendering

Link copied to clipboard
data class ModalEntryState(val entry: NavigationEntry, val isEntering: Boolean, val isExiting: Boolean)

State for individual modal entries

Link copied to clipboard

Unified animation system for all navigation layers

Link copied to clipboard

Everything a navigation header needs, derived from the current navigation state.

Properties

Link copied to clipboard

CompositionLocal for providing default background color to navigation containers

Link copied to clipboard

Space the navigation header occupies, for screens that render beneath it.

Link copied to clipboard

CompositionLocal that provides the active NavigationModule to the Compose tree.

Functions

Link copied to clipboard

Returns the ActionResource of the currently visible screen, or null if the screen does not define one.

Link copied to clipboard

Returns the Navigatable bound to the current entry.

Link copied to clipboard
Link copied to clipboard

Returns the resolved title of the currently visible screen, or null if the screen does not define a io.github.syrou.reaktiv.navigation.definition.Navigatable.titleResource.

Link copied to clipboard
fun NavigationBackgroundProvider(backgroundColor: Color = Color.Unspecified, dismissIndicatorColor: Color = Color.Unspecified, dismissIndicatorBackground: Color = Color.Unspecified, content: @Composable () -> Unit)

Provides a default background color for navigation containers

Link copied to clipboard
fun NavigationRender(modifier: Modifier = Modifier, handlePlatformBack: Boolean = true)

Root composable that drives the navigation UI.

Link copied to clipboard

Title of the entry that a back navigation would reveal, or null at the root of the stack.

Link copied to clipboard

Manages animation state for content layer screen transitions

Link copied to clipboard

Manages animation state for modal overlays

Link copied to clipboard

Gets the current navigation background color from the composition

Link copied to clipboard

Derives the values a navigation header needs from the current navigation state.

Link copied to clipboard
fun UnifiedLayerRenderer(layerType: RenderLayer, entries: List<NavigationEntry>, graphDefinitions: Map<String, NavigationGraph>, evaluationOverlay: LoadingModal? = null)

Unified layer renderer that handles all navigation layer types consistently