Examer Test Session View Model
class ExamerTestSessionViewModel( mediaPlayer: MediaPlayer, testDetails: TestDetails, workBookList: List<WorkBook>, markTestAsCompletedUseCase: MarkTestAsCompletedUseCase) : ViewModel, TestSessionViewModel
Content copied to clipboard
Constructors
Link copied to clipboard
fun ExamerTestSessionViewModel( mediaPlayer: MediaPlayer, testDetails: TestDetails, workBookList: List<WorkBook>, markTestAsCompletedUseCase: MarkTestAsCompletedUseCase)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Used to mark the current test as complete.
Link copied to clipboard
Used to update the currentWorkBook value to the next workbook.
Link copied to clipboard
Used to play the audio file for the currentWorkBook.
Link copied to clipboard
Link copied to clipboard
Used to stop the playback of the currently playing audio file.
Properties
Link copied to clipboard
A state property that contains the current WorkBook.
Link copied to clipboard
A state property that contains an instance of PlaybackState.
Link copied to clipboard
A state property that contains the current UiState of the TestSessionViewModel.