-
- All Implemented Interfaces:
-
com.ramcosta.composedestinations.scope.DestinationScopeWithNoDependencies
public interface DependenciesContainerBuilder<T extends Object> implements DestinationScopeWithNoDependencies<T>
Interface through which you can add dependencies to a DestinationDependenciesContainer. Use dependency methods to do that.
DestinationsNavHosthas a lambda called for each destination with an instance of this interface which lets you add dependencies to it.Each dependency added is associated with a given class (reified in dependency). The calling
Destinationcan then declare arguments of those class types or super types.
-
-
Method Summary
Modifier and Type Method Description abstract TypedDestinationSpec<T>getDestination()DestinationSpec related to this scope abstract NavBackStackEntrygetNavBackStackEntry()NavBackStackEntry of the current destination abstract NavControllergetNavController()NavController related to the NavHost abstract DestinationsNavigatorgetDestinationsNavigator()DestinationsNavigator useful to navigate from this destination abstract TgetNavArgs()Class holding the navigation arguments passed to this destination or Unit if the destination has no arguments -
-
Method Detail
-
getDestination
abstract TypedDestinationSpec<T> getDestination()
DestinationSpec related to this scope
-
getNavBackStackEntry
abstract NavBackStackEntry getNavBackStackEntry()
NavBackStackEntry of the current destination
-
getNavController
abstract NavController getNavController()
NavController related to the NavHost
-
getDestinationsNavigator
abstract DestinationsNavigator getDestinationsNavigator()
DestinationsNavigator useful to navigate from this destination
-
getNavArgs
abstract T getNavArgs()
Class holding the navigation arguments passed to this destination or Unit if the destination has no arguments
-
-
-
-