January 2018
Intermediate to advanced
434 pages
14h 1m
English
Before we move ahead, we need to understand how Dagger2 works. Dagger2 uses annotation to generate codes and uses it to access fields; therefore, it can't use private fields.
The following annotations are used in Dagger2:
The classes annotated with @Module are responsible for providing objects that can be injected. The methods that provide those objects need to be annotated with @Provides. If the method requires another object to create a dependency object, they are provided in the ...
Read now
Unlock full access