LobbyViewModel
class LobbyViewModel(val appState: AppStateImpl, val scope: CoroutineScope, val pickGame: (Game) -> Unit, val globalError: ReversiException? = null, val setGlobalError: (Exception?, ErrorType?) -> Unit) : ViewModel<LobbyUiState>
View model for the lobby screen managing game list, polling, and user interactions. Handles loading available games, polling for updates, and game selection.
Constructors
Link copied to clipboard
constructor(appState: AppStateImpl, scope: CoroutineScope, pickGame: (Game) -> Unit, globalError: ReversiException? = null, setGlobalError: (Exception?, ErrorType?) -> Unit)
Properties
Link copied to clipboard
The mutable internal UI state.
Link copied to clipboard
Global application state for game and UI updates.
Link copied to clipboard
Optional error to display on initial load.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Callback to set a global error.