dependency
Lazy delegate to retrieve a required module dependency from the SpeziApplication dependency graph.
This will throw an exception if the dependency is not found / have been registered beforehand in the Configuration block of SpeziApplication.
Example usage:
class MyComponent {
val myModule by dependency<MyModule>()
fun doSomething() {
myModule.doSomething()
}
}
Content copied to clipboard