https://kotlinlang.org logo
#dagger
Title
# dagger
r

rkeazor

05/20/2020, 1:14 AM
Is it possible to @binds two different interfaces to the same instance and inject both to the same class?
g

Greg Rami

05/20/2020, 1:19 AM
@Named
doesn't help?
r

rkeazor

05/20/2020, 1:35 AM
not for @binds
probably @Provides
g

gildor

05/20/2020, 4:01 AM
@Named works fine for @Binds
👆 1
w

wasyl

05/20/2020, 7:05 AM
@Named
and other qualifiers work the same for both
@Provides
and
@Binds
r

rkeazor

05/20/2020, 2:36 PM
Oh wow .didnt know guys. Thanks for that
👍 1