uiState

abstract val uiState: StateFlow<NewPlayerUIState>

This represents the state the UI is in. NewPlayerUI will basically render out that state. You can make your UI also listen to changes to this state. This is especially helpful for switching to or from fullscreen or to or from PiP mode.