Profile Screen View Model Factory
class ProfileScreenViewModelFactory( application: Application, repository: Repository, authenticationService: AuthenticationService, passwordManager: PasswordManager, credentialsValidationUseCase: CredentialsValidationUseCase) : ViewModelProvider.Factory
Content copied to clipboard
A ViewModelProvider.Factory that is used for creating an instance of ExamerProfileScreenViewModel.
Parameters
application
an instance of the application class.
repository
a concrete implementation of Repository.
authentication Service
the authentication service that is used in the viewModel.
password Manager
a concrete implementation of passwordManager that will be used in the viewModel to retrieve the password.
credentials Validation Use Case
an instance of credentialsValidationUseCase that is used to validate the credentials.
Constructors
Link copied to clipboard
fun ProfileScreenViewModelFactory( application: Application, repository: Repository, authenticationService: AuthenticationService, passwordManager: PasswordManager, credentialsValidationUseCase: CredentialsValidationUseCase)
Content copied to clipboard