If I need to pass a String, an Int into `MainActivityModule`and then provide them to `MainPresenter…
Oliver Son Nguyen
2

for ex:

@Module
public class MainActivityModule {

@Provides
MainView provideMainView(MainActivity mainActivity){
return mainActivity;
}

@Provides
MainPresenter provideMainPresenter(MainView mainView, ApiService apiService){
return new MainPresenterImpl(mainView, apiService);
}

@Provides
@Named("title")
String provideTitle (String title) {
return title;
}

@Provides
@Named("age")
int provideAge (int age) {
return age;
}
}
A single golf clap? Or a long standing ovation?

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