really nice helped me a lot for my presentation about Dagger 2 thx :) but i have a question what…
Dia Mamadou
11

The purpose of this is to pass an injectable object, in this case, MainActivity to Dagger, which then will inject it via Method/Field injection. If you look at MainActivity, it has fields marked with the @Inject annotation. So this means that Dagger 2 will search it graph, and if it can, it will set that field/call an injectable method.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.