EmbeddedUiConfig

data class EmbeddedUiConfig(val systemBarInLightMode: Boolean, val brightness: Float, val screenOrientation: Int) : Parcelable

This helps to restore properties of the UI/SystemUI when returning from fullscreen mode. NewPlayerViewModelImpl uses this to store the properties when switching to a fullscreen mode. When returning from a fullscreen mode NewPlayerViewModelImpl will store the current EmbeddedUiConfig in the NewPlayerUIState. When returning from fullscreen mode NewPlayerUI will then restore that configuration.

TODO: At least in theory. Brightnes and the systembar theme don't work (correctly) right now.

Constructors

Link copied to clipboard
constructor(systemBarInLightMode: Boolean, brightness: Float, screenOrientation: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)