Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: Any, property: KProperty<*>): Injector
Link copied to clipboard
fun inject()

Inject dependencies into properties by using the graph from Graph.resolveGraph with the Injector.

fun inject(graph: Graph)

Inject dependencies into properties by using the graph.

Link copied to clipboard
inline fun <R : Any> instance(key: TypeKey<R> = erased(), noinline block: ComponentBuilderBlock? = null): InjectedProperty<R>

Creates a property delegate for an instance of type R.

Link copied to clipboard
inline operator fun <R : Any> invoke(key: TypeKey<R> = erased(), noinline block: ComponentBuilderBlock? = null): InjectedProperty<R>

Creates a property delegate for an instance of type R.

Link copied to clipboard
inline fun <R : Any> lazyInstance(key: TypeKey<R> = erased(), noinline block: ComponentBuilderBlock? = null): InjectedProperty<R>

Creates a lazy property delegate for an instance of type R.

Link copied to clipboard
inline fun <R : Any> provider(key: TypeKey<R> = erased(), noinline block: ComponentBuilderBlock? = null): InjectedProperty<Provider<R>>

Creates a property delegate for a Provider of type () -> R.