Log In View Model Factory
class LogInViewModelFactory( authenticationService: AuthenticationService, passwordManager: PasswordManager, dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main)) : ViewModelProvider.Factory
Content copied to clipboard
A ViewModelProvider.Factory that is used for creating an instance of ExamerLogInViewModel.
Parameters
authentication Service
the authentication service that is used in the viewModel.
dispatcher Provider
the dispatcher provider that is to be used in the viewModel. By default, it uses an instance of StandardDispatchersProvider. The io dispatcher is changed to Dispatchers.Main because, the data layer ensures that all suspend functions are main safe.
Constructors
Link copied to clipboard
fun LogInViewModelFactory( authenticationService: AuthenticationService, passwordManager: PasswordManager, dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main))
Content copied to clipboard