inline fun <reified R : Any> instance(qualifier: Any? = null, generics: Boolean = false): Injector.InjectedProperty<R>
Creates and registers a property delegate for an instance of type R.
qualifier - An optional qualifier.
generics - Preserve generic type parameters.
Return
The created InjectedProperty.
inline fun <reified A, reified R : Any> instance(argument: A, qualifier: Any? = null, generics: Boolean = false): Injector.InjectedProperty<R>
Creates and registers a property delegate for an instance of type R.
This lookups a factory of type (A) -> R and calls it with the supplied argument.
argument - The argument for the factory.
qualifier - An optional qualifier.
generics - Preserve generic type parameters.
Return
The created InjectedProperty.