LobbyUiState
data class LobbyUiState(val gameStates: List<LobbyLoadedState> = emptyList(), val lobbyState: LobbyState = LobbyState.NONE, val selectedGame: LobbyLoadedState? = null, val canRefresh: Boolean = false, val screenState: ScreenState = ScreenState(
error = null,
isLoading = false
)) : UiState
UI state for the lobby screen displaying available games.
Constructors
Link copied to clipboard
constructor(gameStates: List<LobbyLoadedState> = emptyList(), lobbyState: LobbyState = LobbyState.NONE, selectedGame: LobbyLoadedState? = null, canRefresh: Boolean = false, screenState: ScreenState = ScreenState(
error = null,
isLoading = false
))
Properties
Link copied to clipboard
Whether the refresh button is enabled.
Link copied to clipboard
List of loaded games available to join.
Link copied to clipboard
Current state of the lobby (empty, showing games, etc.).
Link copied to clipboard
The screen state containing error and loading information.
Link copied to clipboard
The currently selected game for joining.