SettingsUiState

data class SettingsUiState(val screenState: ScreenState = ScreenState(), val draftPlayerName: String?, val draftTheme: AppTheme, val draftCoreConfig: CoreConfig, val currentVol: Float) : UiState

UI state for the settings page screen.

Constructors

Link copied to clipboard
constructor(screenState: ScreenState = ScreenState(), draftPlayerName: String?, draftTheme: AppTheme, draftCoreConfig: CoreConfig, currentVol: Float)

Properties

Link copied to clipboard

The current audio volume level.

Link copied to clipboard

The core configuration being modified in the settings.

Link copied to clipboard

The player name being edited in the settings.

Link copied to clipboard

The theme being selected in the settings.

Link copied to clipboard
open override val screenState: ScreenState

The screen state containing error and loading information.

Functions

Link copied to clipboard
open override fun updateScreenState(newScreenState: ScreenState): SettingsUiState

Creates a copy of this UI state with the given screen state.