in and out as a user navigates through your app. - NavController: Manages app navigation within a NavHost - Stateful - Keeps track of the back stack composables - Navigation destination: Composable screens.
your route. - By default, all arguments are parsed as Strings. - You can create a NamedNavArgument using navArgument() method and specify the type. arguments = listOf(navArgument("itemId") { type = NavType.IntType }) - You retrieve the argument from NavBackStackEntry available in the lamda of the composable() function.