rememberNavController
Common
@Composable
public expect 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.
rememberNavController
Android
@Composable
public actual fun rememberNavController(
vararg navigators: Navigator<out NavDestination>
): NavHostController