-
@Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.ANNOTATION_CLASS}) public @interface Destination<T extends Annotation>
Marks a
Composablefunction as a navigation graph destination. ADestinationwill be generated for each of these which will include the full route, the nav arguments and theComposablefunction which will call the annotated one, when the destination gets navigated to.Can also be used on another annotation class which can then itself be used in the
Composablefunction (or another annotation class, recursively). If used this way, it will carry over its values, allowing for easy single place where you define Wrappers or DeepLinks for example.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDestination.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringrouteprivate final Booleanstartprivate final KClass<?>navArgsprivate final Array<DeepLink>deepLinksprivate final KClass<out DestinationStyle>styleprivate final Array<KClass<out DestinationWrapper>>wrappersprivate final CodeGenVisibilityvisibilityprivate final Stringlabel
-