lazyInject

inline fun <T : Any> lazyInject(qualifier: Any? = null): Lazy<T>

Inject an instance with lazily resolved dependencies.

Parameters

qualifier

Qualifier for identification. Specify the instantiation of the annotation with Qualifier.


inline fun <T : Any> lazyInject(qualifier: Any? = null, noinline componentExtrasProducer: () -> ComponentExtras<*>? = null): Lazy<T>

Inject an instance with lazily resolved dependencies (experimental).

Parameters

qualifier

Qualifier for identification. Specify the instantiation of the annotation with Qualifier.

componentExtrasProducer

Specify ComponentExtras to create Component.