ProfileScreenViewModelFactory

class ProfileScreenViewModelFactory(    application: Application,     repository: Repository,     authenticationService: AuthenticationService,     passwordManager: PasswordManager,     credentialsValidationUseCase: CredentialsValidationUseCase) : ViewModelProvider.Factory

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.

authenticationService

the authentication service that is used in the viewModel.

passwordManager

a concrete implementation of passwordManager that will be used in the viewModel to retrieve the password.

credentialsValidationUseCase

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)

Functions

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