Package-level declarations
Types
Code marked with InternalNavigationApi has no guarantees about API stability and can be changed at any time.
A destination that can be navigated to. See NavHost
for how to configure a NavGraph
with it.
This allows to trigger navigation actions from outside the view layer without keeping references to Android framework classes that might leak. It also improves the testability of your navigation logic since it is possible to just write test that the correct events were emitted.
Functions
Sets up the NavEventNavigator inside the current composition so that it's events are handled while the composition is active.
Creates a new NavDestination that is shown on top a ScreenDestination, for example a dialog or bottom sheet. The class of T will be used as a unique identifier. The given content will be shown inside the dialog window when navigating to it by using an instance of T.
Creates a new NavDestination that represents a full screen. The class of T will be used as a unique identifier. The given content will be shown when the screen is being navigated to using an instance of T.