remember Navigation Controller
fun rememberNavigationController(saver: NavigationControllerSaver, startDestinations: List<Destination>): NavigationController
Parameters
saver
The state saver used to restore the navigation controller's state.
start Destinations
The full list of start destinations. For each unique Destination.Args.backstackIndex you must provide a start Destination. Example:
val controller = rememberNavigationController(
saver = saver,
startDestinations = listOf(HomeDestination()),
)Content copied to clipboard