ControlCenterPanelSystemUiHostExtension

SystemUiHostExtension for the stock system UI behavior for the control center panel.

This SystemUiHostExtension binds the ControlCenterPanelSystemUiViewModel instance to the controlCenterPanelViewModel binding data variable.

System UI layouts can define the following to use the bound view model:

<data>
<import type="com.tomtom.ivi.platform.frontend.api.common.frontend.panels.ControlCenterPanel" />

<variable
name="controlCenterPanelViewModel"
type="com.tomtom.ivi.platform.systemui.api.stock.systemuihost.extensions.ControlCenterPanelSystemUiViewModel" />
</data>

Example for using the controlCenterPanelViewModel variable:

<com.tomtom.ivi.platform.systemui.api.common.systemuihost.panelcontainer.SinglePanelContainer
android:id="@+id/ttivi_control_center_system_status_driver_container"
auto:ttiviPanelContainerContext="@{panelContainerContext}"
auto:ttiviPanelContainerData="@{controlCenterPanelViewModel.getControlCenterPanel(ControlCenterPanel.Type.SYSTEM_STATUS_DRIVER)}" />

Parameters

systemUiHostExtensionContext
controlCenterPanels

The active ControlCenterPanels.

Constructors

Functions

Link copied to clipboard
open override fun bindSystemUiView(binding: ViewDataBinding)