1
Dagger, can someone give me a hand?
I managed to do some 3 very simple projects always trying several to have new problems and learn more, but one part I’m kind of copying because I don’t understand, in the Component there are some examples that show something like:
void inject(MainActivity activity);
or
void inject(BaseView mView); //Eu sei que o é BaseView e para que serve!!
A doubt, for either the Inject
.
My doubt is partly because in other examples there is and often there is also a:
Retrofit exposeRetrofit();
or
Context exposeContext();
I read the documentation but could not see how it works. When I use void inject(...);
and when I use Objeto exposeObjeto();
Does anyone know?
But because in some projects even when these provide are used and in the Component there is no void inject(xxx); ??
– Hugo