Package 

Class PlayerUiStateProducer


  • 
    public final class PlayerUiStateProducer
    
                        

    Produces 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.

    • Constructor Summary

      Constructors 
      Constructor Description
      PlayerUiStateProducer(PlayerRepository playerRepository)
    • Method Summary

      Modifier and Type Method Description
      final Flow<PlayerUiState> getPlayerUiStateFlow()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlayerUiStateProducer

        PlayerUiStateProducer(PlayerRepository playerRepository)