if we didnt call the method inject(MainActivity activity) dragger couldnt found that the…
Dia Mamadou

the name of the method doesn’t matter. it can be arbitrary such as thisDoesSomethingCalledInjection(MainActivity mainActivity)

What IS important, is that you pass the injectable object to Dagger. Otherwise it will never be injected. Think of it this way, without this, how would Dagger ever know to inject that object?

One clap, two clap, three clap, forty?

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