https://kotlinlang.org logo
#android
Title
# android
d

Davor

04/03/2018, 10:41 AM
Does anyone know if dagger2 can return functions from modules? I have a function type
(DachshundTabLayout) -> AnimatedIndicatorInterface
that i provide in my module and should be able to get from my component but compiler throws an error saying that the type
Function1<? super com.kekstudio.dachshundtablayout.DachshundTabLayout,? extends com.kekstudio.dachshundtablayout.indicators.AnimatedIndicatorInterface>
cannot be provided without an @Provides annottated method
d

Davor

04/03/2018, 11:36 AM
Seems to be what I need. Thanks a lot! ❤️