-
public final class DestinationDependenciesContainerKt
-
-
Method Summary
Modifier and Type Method Description final static <D extends Any, T extends Any> Unitdependency(DependenciesContainerBuilder<T> $self, D dependency)Adds dependency to this container builder. final static <T extends Any> UnitnavGraph(DependenciesContainerBuilder<T> $self, TypedNavGraphSpec<?, ?> navGraph, Function1<DependenciesContainerBuilder<T>, Unit> dependencyProvider)Calls dependencyProvider when a destination (directly or indirectly) part of navGraph is navigated to, giving an opportunity to specify dependencies with dependency method that are supposed to be used only by destinations of that navGraph. final static <T extends Any> Unitdestination(DependenciesContainerBuilder<T> $self, TypedDestinationSpec<?> destination, Function1<DependenciesContainerBuilder<T>, Unit> dependencyProvider)Calls dependencyProvider when a destination is navigated to, giving an opportunity to specify dependencies with dependency method that are supposed to be used only by that destination. final static <D extends Any> Drequire(DestinationDependenciesContainer $self, Boolean isMarkedNavHostParam)Function through which you can get a hold of the dependencies inside DestinationDependenciesContainer. -
-
Method Detail
-
dependency
final static <D extends Any, T extends Any> Unit dependency(DependenciesContainerBuilder<T> $self, D dependency)
Adds dependency to this container builder.
-
navGraph
@Composable() final static <T extends Any> Unit navGraph(DependenciesContainerBuilder<T> $self, TypedNavGraphSpec<?, ?> navGraph, Function1<DependenciesContainerBuilder<T>, Unit> dependencyProvider)
Calls dependencyProvider when a destination (directly or indirectly) part of navGraph is navigated to, giving an opportunity to specify dependencies with dependency method that are supposed to be used only by destinations of that navGraph.
-
destination
@Composable() final static <T extends Any> Unit destination(DependenciesContainerBuilder<T> $self, TypedDestinationSpec<?> destination, Function1<DependenciesContainerBuilder<T>, Unit> dependencyProvider)
Calls dependencyProvider when a destination is navigated to, giving an opportunity to specify dependencies with dependency method that are supposed to be used only by that destination.
-
require
final static <D extends Any> D require(DestinationDependenciesContainer $self, Boolean isMarkedNavHostParam)
Function through which you can get a hold of the dependencies inside DestinationDependenciesContainer.
- Parameters:
isMarkedNavHostParam- is used internally by generated code only to give a helping error in case the dependency is missing.
-
-
-
-