EconoShowViewModel

The View Model of the App

Controls the state of the app during reconfigurations. Allows the app to redraw while maintaining critical information to improve user experience.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val uiState: StateFlow<EconoShowUiState>

The StateFlow that can be listened to for different EconoShowUiState properties

Functions

Link copied to clipboard
fun setAfkTimerJob(afkTimer: Job)

Sets the afkTimer in EconoShowUiState

Link copied to clipboard

Sets the currentInformationSubScreenIndex in EconoShowUiState

Link copied to clipboard
fun setMachine(machine: <Error class: unknown class>)

Sets the currentMachine in EconoShowUiState

Link copied to clipboard
fun setMachineType(machineType: <Error class: unknown class>)

Sets the currentMachineType in EconoShowUiState