Direct DIBase
See also
Functions
Factory Or Null
Link copied to clipboard
Instance
Link copied to clipboard
Instance Or Null
Link copied to clipboard
abstract fun <T : Any> InstanceOrNull(type: TypeToken<T>, tag: Any? = null): T?
Content copied to clipboard
Gets an instance of T for the given type and tag, or null if none is found.
abstract fun <A, T : Any> InstanceOrNull(argType: TypeToken<in A>, type: TypeToken<T>, tag: Any? = null, arg: A): T?
Content copied to clipboard
Gets an instance of T for the given type and tag, curried from a factory for the given argument type, or null if none is found.
Provider
Link copied to clipboard
abstract fun <T : Any> Provider(type: TypeToken<T>, tag: Any? = null): () -> T
Content copied to clipboard
Gets a provider of T for the given type and tag.
abstract fun <A, T : Any> Provider(argType: TypeToken<in A>, type: TypeToken<T>, tag: Any? = null, arg: () -> A): () -> T
Content copied to clipboard
Gets a provider of T for the given type and tag, curried from a factory for the given argument type.
Provider Or Null
Link copied to clipboard
abstract fun <T : Any> ProviderOrNull(type: TypeToken<T>, tag: Any? = null): () -> T?
Content copied to clipboard
Gets a provider of T for the given type and tag, or null if none is found.
abstract fun <A, T : Any> ProviderOrNull(argType: TypeToken<in A>, type: TypeToken<T>, tag: Any? = null, arg: () -> A): () -> T?
Content copied to clipboard
Gets a provider of T for the given type and tag, curried from a factory for the given argument type, or null if none is found.
Properties
Inheritors
DirectDI
Link copied to clipboard