-
public final class PlayerUiStateProducerProduces a flow of PlayerUiState based on events produced by a PlayerRepository.
This class should generally always be hosted inside a ViewModel to ensure it's tied to a lifecycle that survives configuration changes.
-
-
Field Summary
Fields Modifier and Type Field Description private final Flow<PlayerUiState>playerUiStateFlow
-
Constructor Summary
Constructors Constructor Description PlayerUiStateProducer(PlayerRepository playerRepository)
-
Method Summary
Modifier and Type Method Description final Flow<PlayerUiState>getPlayerUiStateFlow()-
-
Method Detail
-
getPlayerUiStateFlow
final Flow<PlayerUiState> getPlayerUiStateFlow()
-
-
-
-