TestsViewModelFactory

class TestsViewModelFactory(    authenticationService: AuthenticationService,     repository: Repository,     testDetailsListType: TestDetailsListType) : ViewModelProvider.Factory

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

Parameters

authenticationService

the authentication service that is used in the viewModel.

repository

a concrete implementation of Repository.

testDetailsListType

represents what type of tests the instance of the viewModel is dealing with.

Constructors

Link copied to clipboard
fun TestsViewModelFactory(    authenticationService: AuthenticationService,     repository: Repository,     testDetailsListType: TestDetailsListType)

Functions

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