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