Start native apps faster with the Composables CLI ->
Composable Function

rememberNavController

rememberNavController

Source set: Android
@Composable
public fun rememberNavController(
    vararg navigators: Navigator<out NavDestination>
): NavHostController

rememberNavController

Source set: Common
@Composable
public fun rememberNavController(
    vararg navigators: Navigator<out NavDestination>
): NavHostController

Creates a NavHostController that handles the adding of the ComposeNavigator and DialogNavigator. Additional Navigator instances can be passed through navigators to be applied to the returned NavController. Note that each Navigator must be separately remembered before being passed in here: any changes to those inputs will cause the NavController to be recreated.