January 2018
Intermediate to advanced
434 pages
14h 1m
English
When you've defined all the dependency objects you need in the module class, you can get the component. Let's take look at the mentioned steps:
@Injectlateinit var mPresenter:AddActivityMvpPresenter
We have also used the lateinit modifier to void null checks before using the variable.
@Moduleclass AddActivityModule { @Provides @ControllerScope fun providesAddActivityPresenter(addActivityPresenter: AddActivityPresenter):AddActivityMvpPresenter =addActivityPresenter ...Read now
Unlock full access