Android, Navigation Component, Jetpack Compose, Kotlin, AndroidDev.
annotation: // Define a home destination that doesn't take any arguments @Serializable object Home // Define a profile destination that takes an ID @Serializable data class Profile(val id: String, val name: String) Build the navigation graph using these destinations: NavHost(navController,