Package 

Annotation ExternalNavGraph


  • 
    public @interface ExternalNavGraph<T extends TypedNavGraphSpec<?, ?>>
    
                        

    Can be used in a companion object of a NavGraph annotated annotation to include a NavGraphSpec from another module as nested in the navigation graph.

    Example:

    @NavGraph<RootGraph>
    annotation class ProfileGraph {
        @ExternalNavGraph<AnotherModuleNavGraph>
        companion object Includes // name of the companion object does not matter
    }

    This would create a "Profile" nav graph nested on "Root" graph and with "AnotherModuleNavGraph" as a nested graph of "Profile".