Direct DIBase
See also
Functions
Link copied to clipboard
Link copied to clipboard
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.
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.
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.