GleamNavigator
Navigator that drives a GleamState for use with GleamScaffolds within the navigation library. Every destination using this Navigator must set a valid Composable by defining it directly on an instantiated Destination or calling gleam.
Key behavior:
The gleamContent always displays the latest entry from the back stack.
Navigating between Gleam destinations replaces the current content instead of creating a new gleam.
Dismissing the Gleam via user interaction pops the latest entry from the
state
's back stack.
Public Usage:
Use rememberGleamNavigator to create and access a GleamNavigator instance in your composables. This function handles memory management and ensures consistent usage throughout your application.
Parameters
The GleamState that the GleamNavigator will control.
Types
NavDestination specific to GleamNavigator
Properties
A Composable function that hosts the current gleam content. This should be set as gleamContent of your GleamScaffold.
Determines the overall visibility state of the Gleam content.
Access properties of the GleamScaffold's GleamState
Determines whether the current navigation state should be visible based on the back stack.
Functions
Associates a NavHostController with this GleamNavigator, enabling navigation using Gleam composables.