Does anyone know if dagger2 can return functions f...
# android
d
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
Seems to be what I need. Thanks a lot! ❤️