Sign Up View Model Factory
class SignUpViewModelFactory( authenticationService: AuthenticationService, passwordManager: PasswordManager, credentialsValidationUseCase: CredentialsValidationUseCase, dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main)) : ViewModelProvider.Factory
Content copied to clipboard
A ViewModelProvider.Factory that is used for creating an instance of ExamerSignUpViewModel.
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 SignUpViewModelFactory( authenticationService: AuthenticationService, passwordManager: PasswordManager, credentialsValidationUseCase: CredentialsValidationUseCase, dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main))
Content copied to clipboard