ExamerTestSessionViewModel

class ExamerTestSessionViewModel(    mediaPlayer: MediaPlayer,     testDetails: TestDetails,     workBookList: List<WorkBook>,     markTestAsCompletedUseCase: MarkTestAsCompletedUseCase) : ViewModel, TestSessionViewModel

Constructors

Link copied to clipboard
fun ExamerTestSessionViewModel(    mediaPlayer: MediaPlayer,     testDetails: TestDetails,     workBookList: List<WorkBook>,     markTestAsCompletedUseCase: MarkTestAsCompletedUseCase)

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
open fun <T : Any> getTag(p0: String): T
Link copied to clipboard
open override fun markCurrentTestAsComplete()

Used to mark the current test as complete.

Link copied to clipboard
open override fun moveToNextWorkBook()

Used to update the currentWorkBook value to the next workbook.

Link copied to clipboard
open fun onCleared()
Link copied to clipboard
open override fun playAudioForCurrentWorkBook()

Used to play the audio file for the currentWorkBook.

Link copied to clipboard
open fun <T : Any> setTagIfAbsent(p0: String, p1: T): T
Link copied to clipboard
open override fun stopAudioPlayback()

Used to stop the playback of the currently playing audio file.

Properties

Link copied to clipboard
open override val currentWorkBook: State<WorkBook>

A state property that contains the current WorkBook.

Link copied to clipboard
open override val currentWorkBookNumber: State<Int>

A state property that contains the current workbook number.

Link copied to clipboard
open override val hoursRemaining: State<String>

A state property that contains a string indicating the number of hours remaining for the test.

Link copied to clipboard
open override val isAudioFilePlaying: State<Boolean>

A state property that indicates whether the current audio is playing.

Link copied to clipboard
open override val minutesRemaining: State<String>

A state property that contains a string indicating the number of minutes remaining for the test.

Link copied to clipboard
open override val numberOfRepeatsLeftForAudioFile: State<Int>

A state property that contains a string indicating the number of repeats left for the current audio file .

Link copied to clipboard
open override val playbackState: State<PlaybackState>

A state property that contains an instance of PlaybackState.

Link copied to clipboard
open override val secondsRemaining: State<String>

A state property that contains a string indicating the number of seconds remaining for the test.

Link copied to clipboard
open override val uiState: State<TestSessionViewModel.UiState>

A state property that contains the current UiState of the TestSessionViewModel.