SignUpViewModelFactory

class SignUpViewModelFactory(    authenticationService: AuthenticationService,     passwordManager: PasswordManager,     credentialsValidationUseCase: CredentialsValidationUseCase,     dispatcherProvider: DispatcherProvider = StandardDispatchersProvider(io = Dispatchers.Main)) : ViewModelProvider.Factory

A ViewModelProvider.Factory that is used for creating an instance of ExamerSignUpViewModel.

Parameters

authenticationService

the authentication service that is used in the viewModel.

dispatcherProvider

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))

Functions

Link copied to clipboard
open override fun <T : ViewModel?> create(modelClass: Class<T>): T