TypeBinderSubTypes

class TypeBinderSubTypes<T : Any>

Second part of the bind<Type>().inSet() with binding syntax.

Parameters

T

The type of the binding in the set.

Functions

With
Link copied to clipboard
fun <C : Any, A> With(contextType: TypeToken<in C>, argType: TypeToken<in A>, createdType: TypeToken<out T>, block: (TypeToken<out T>) -> DIBinding<in C, in A, out T>)
Second part of the bind<Type>().inSet() with binding syntax.

Extensions

with
Link copied to clipboard
infix inline fun <C : Any, A : Any, T : Any> TypeBinderSubTypes<T>.with(noinline block: (TypeToken<out T>) -> DIBinding<in C, in A, out T>)
Allows to define a binding that will be called for any subtype of this type.