Dagger, can anyone give me a hand?
I was able to do a 3 simple projects always trying several to have new problems and learn more, but a part I'm kind of copying because I do not understand, Component has 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 question for either Inject
.
My question is part because in other examples it does not have and often also has one:
Retrofit exposeRetrofit();
or
Context exposeContext();
I have read the documentation but can not see how this works. When I use void inject(...);
and when I use Objeto exposeObjeto();
Does anyone know?