use of com.mindorks.framework.mvvm.ui.feed.blogs.BlogViewModel in project android-mvvm-architecture by MindorksOpenSource.
the class FragmentModule method provideBlogViewModel.
@Provides
BlogViewModel provideBlogViewModel(DataManager dataManager, SchedulerProvider schedulerProvider) {
Supplier<BlogViewModel> supplier = () -> new BlogViewModel(dataManager, schedulerProvider);
ViewModelProviderFactory<BlogViewModel> factory = new ViewModelProviderFactory<>(BlogViewModel.class, supplier);
return new ViewModelProvider(fragment, factory).get(BlogViewModel.class);
}
Aggregations