ktp / toothpick.ktp.delegate / provider

provider

inline fun <reified T : Any> provider(): ProviderDelegateProvider<T>

Parameters

T - the type of the thing to inject, the key of the binding.

Return
a property delegate that will inject a provider.

inline fun <reified T : Any> provider(name: String): ProviderDelegateProvider<T>
inline fun <reified T : Any> provider(name: KClass<out Annotation>): ProviderDelegateProvider<T>

Parameters

T - the type of the thing to inject, the key of the binding.

name - a nullable name to designate a specific named binding.

Return
a property delegate that will inject a provider.