KDestination
Base contract for all navigation destinations in a Kindling application.
A destination represents a unique route inside a Compose navigation graph.
Implement this interface (typically through a sealed class or sealed interface) to centralize route definitions and optional navigation arguments.
Example
sealed class Screen(
override val route: String
) : KDestination {
data object Splash : Screen("splash")
data object Home : Screen("home")
data object Profile : Screen("profile/{userId}") {
override val arguments = listOf(
navArgument("userId") {
type = NavType.StringType
}
)
}
}Content copied to clipboard