Hi guys, I was wondering how to add `FragmentFacto...
# dagger
a
Hi guys, I was wondering how to add
FragmentFactory
with Hilt. It seems that
Hilt
works almost the same way as
dagger-android
(please correct me if im wrong) and so, using
FragmentFactory
is really hard. Can anyone guide me please.
e
You can install a
multibindings
powered factory in your application/retained/activity component (whichever you fancy) and use method or field injection to inject it.
a
But that means I wont be able to use all the Hilt's Fragment related stuff right? So thats basically me creating the Factory myself.. doing all the multibindings... which hilt already provide out of the box. right?