Looking at hilt docs and they say "*Predefined bin...
# dagger
c
Looking at hilt docs and they say "*Predefined bindings* to represent Android classes such as 
Application
 or 
Activity
." Can anyone explain what that means? Edit: I think this is part of the lingo of dagger that I haven't picked up yet, but it seems like it's pretty widely accepting that "bindings" in the context of dagger means "types that are available to you". If so... Bindings for Application or Activity... do they actually mean Context?
a
Predefined bindings means that they're available in your DI graph without manual provisioning from you, as Hilt has provided them for you as part of the Predefined components (
SingletonComponent
and
ActivityComponent
) That means when you do an
@Inject
and ask the graph for
Application
and
Activity
you'll be provided them without you doing
@Provides
or
@Binds
for them.
c
Thanks for the explanation!
👍 2