Injects

interface Injects<M>

Injection interface.

Functions

Link copied to clipboard
fun <M> Injects<M>.inject(module: M)

Fetches Kapsule instance and calls Kapsule.inject.

Link copied to clipboard
fun <M, T> Injects<M>.optional(initializer: M.() -> T?): Delegate.Optional<M, T>

Fetches Kapsule instance and calls Kapsule.optional.

Link copied to clipboard
fun <M, T> Injects<M>.required(initializer: M.() -> T): Delegate.Required<M, T>

Fetches Kapsule instance and calls Kapsule.required.