MediaFrontendContext

constructor(frontendContext: FrontendContext, panelStack: LiveData<out List<MediaTaskPanel>>, mediaConfiguration: MediaConfiguration, mediaService: MediaServiceApi, mediaFrontendNavigation: MediaFrontendContext.MediaFrontendNavigation)

Parameters

frontendContext

Base FrontendContext. Used to access IVI services.

panelStack

Current stack of panels for the Frontend. Usable to determine which panels are open. The Frontend is responsible for observing this variable, to ensure panels always have access to an updated list.

mediaConfiguration

The configuration of the Frontend. This includes the mapping of SourceId to panel factories, and which MediaControls to use.

mediaService

Reference to the MediaServiceApi based on the MediaService IVI service interface, for ease of access.

mediaFrontendNavigation

Interface to navigate within the media frontend.