inject
inline fun <T> ComponentActivity.inject(qualifier: Qualifier = TypeQualifier(T::class), mode: LazyThreadSafetyMode = LazyThreadSafetyMode.SYNCHRONIZED): Lazy<T>
A helper function to lazily inject a dependency from the root scope.
Return
Parameters
T
The type of the dependency to inject.
qualifier
An optional Qualifier if you need to distinguish between dependencies of the same type.
mode
The LazyThreadSafetyMode for the lazy delegate.