DependenciesGraph

A graph of dependencies built at app start up via the configuration of the SpeziApplication.

Parameters

registry

The ModuleRegistry containing the registered modules and factories.

Functions

Link copied to clipboard
inline fun <M : Module> dependency(identifier: String? = null): M

Retrieves a module of type M from the dependency graph. This method can be used in the ConfigurationBuilder.module scope to access other modules that are already registered in the graph.

Link copied to clipboard
inline fun <M : Module> optionalDependency(identifier: String? = null): M?

Retrieves a module of type M from the dependency graph. This method can be used in the ConfigurationBuilder.module scope to access other modules that are already registered in the graph.