WinnerPageViewModel

class WinnerPageViewModel(val scope: CoroutineScope, val game: Game, val globalError: ReversiException?, val setGlobalError: (Exception?, ErrorType?) -> Unit) : ViewModel<WinnerUiState>

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope, game: Game, globalError: ReversiException?, setGlobalError: (Exception?, ErrorType?) -> Unit)

Properties

Link copied to clipboard
protected open override val _uiState: MutableState<WinnerUiState>

The mutable internal UI state.

Link copied to clipboard
val game: Game
Link copied to clipboard
open override val globalError: ReversiException?

Optional global error state.

Link copied to clipboard
val scope: CoroutineScope
Link copied to clipboard
open override val setGlobalError: (Exception?, ErrorType?) -> Unit

Callback to set a global error.

Functions

Link copied to clipboard