AutoBindIntoMap
annotation class AutoBindIntoMap(val inComponent: KClass<*> = Nothing::class, val asTypes: Array<KClass<*>> = [], val bindGenericAs: BindGenericAs = BindGenericAs.ExactType)(source)
A version of AutoBind that binds the object using IntoMap. The object must also be annotated with a MapKey annotated annotation such as StringKey, MapKey, or a custom annotation.
For more documentation on auto bind see AutoBind.
See also https://dagger.dev/dev-guide/multibindings.html#map-multibindings
Since
1.0.0
Parameters
inComponent
Which component to install the binding in. Defaults to being inferred based on the scope.
asTypes
Specifies which supertypes to bind the object as. Required if there are multiple supertypes.
bindGenericAs
Specifies how generic supertypes should be bound. Defaults to BindGenericAs.ExactType or if the target type is annotated with BindGenericAs.Default.