Package 

Annotation Destination


  • @Target(allowedTargets = {AnnotationTarget.FUNCTION, AnnotationTarget.ANNOTATION_CLASS}) 
    public @interface Destination<T extends Annotation>
    
                        

    Marks a Composable function as a navigation graph destination. A Destination will be generated for each of these which will include the full route, the nav arguments and the Composable function 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 Composable function (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.