Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Component providing inject() methods for presenters.
- */
- @Singleton
- @Component(modules = [(NetworkModule::class)])
- interface ViewModelInjector {
- /**
- * Injects required dependencies into the specified PostListViewModel.
- * @param postListViewModel PostListViewModel in which to inject the dependencies
- */
- fun inject(postListViewModel: PostListViewModel)
- @Component.Builder
- interface Builder {
- fun build(): ViewModelInjector
- fun networkModule(networkModule: NetworkModule): Builder
- }
- }
Add Comment
Please, Sign In to add comment