Test Session View Model
An interface that contains the methods and properties that are required for a concrete implementation of TestSessionViewModel.
This type of viewModel is used to encapsulate logic that is required to manage a single test session. In other words, it contains the logic that is used to manage a single test (TestDetails).
Types
An enum class that contains different UI stats associated with a concrete implementation of TestSessionViewModel.
Functions
Used to mark the current test as complete.
Used to update the currentWorkBook value to the next workbook.
Used to play the audio file for the currentWorkBook.
Used to stop the playback of the currently playing audio file.
Properties
A state property that contains the current WorkBook.
A state property that contains an instance of PlaybackState.
A state property that contains the current UiState of the TestSessionViewModel.