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

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?