In part 3 of this Dagger tutorial, we will learn how to do Function Injection. By annotating a non-private function with @Inject, we tell Dagger to call it as part of the injection process and provide its arguments as dependencies. The function is called after all @Inject annotated fields are injected.
Function Injection is good when we want to pass the fully instantiated object itself to the dependency with "this", so we don't let it escape from the constructor.
GitHub: https://github.com/ktenzweiler/LearnD...
FB: https://www.facebook.com/profile.php?...
IG: / texdroid01