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