-
public @interface ExternalDestination<T extends TypedDestinationSpec<?>>Can be used in a companion object of a NavGraph annotated annotation to include a DestinationSpec from another module in the navigation graph.
Example:
@NavGraph<RootGraph> annotation class ProfileGraph { @ExternalDestination<AnotherModuleDestination> companion object Includes // name of the companion object does not matter }This would create a "Profile" nav graph nested on "Root" graph and with "AnotherModuleDestination" as a destination part of "Profile".