MatchesViewModel

class MatchesViewModel(matchesRepository: MatchesRepository) : ViewModel

ViewModel for the Matches screen.

Parameters

matchesRepository

The repository used to fetch match data.

Constructors

Link copied to clipboard
constructor(matchesRepository: MatchesRepository)

Types

Link copied to clipboard
object Companion

Companion object to provide a ViewModelProvider.Factory for creating instances of MatchesViewModel.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
lateinit var uiListState: StateFlow<MatchListState>
Link copied to clipboard
val uiState: StateFlow<MatchOverviewState>
Link copied to clipboard
lateinit var wifiWorkerState: StateFlow<WorkerState>

Functions

Link copied to clipboard
Link copied to clipboard

Called when a date is selected in the UI.