Screen

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Screen(val graph: String, val route: String = "")

Marks a top-level composable as a Navigation 3 destination for KSP code generation.

The generated route name defaults to the composable function name. Parameters without a navigation callback annotation become serializable route arguments unless marked with ScreenKoinViewModel.

Parameters

graph

the feature graph that owns this destination

route

an optional route type name; defaults to the annotated function name

Properties

Link copied to clipboard
Link copied to clipboard