MainProcessPanelPositionSystemUiHostExtension
SystemUiHostExtension for the stock system UI behavior for the MainProcessPanel position.
In the stock system UI, the position of the main process panel is configurable. Use this SystemUiHostExtension if one of the stock system UI layouts are used. Or if a custom system UI layout also requires the same configurability.
This SystemUiHostExtension binds the MainProcessPanelPositionSystemUiHostExtension instance to the mainProcessPanelViewModel
binding data variable.
System UI layouts can define the following to use the bound view model:
<data>
<import type="com.tomtom.ivi.platform.systemui.api.service.debugsystemui.ProcessPanelPosition" />
<variable
name="mainProcessPanelViewModel"
type="com.tomtom.ivi.platform.systemui.api.stock.systemuihost.extensions.MainProcessPanelSystemUiViewModel" />
</data>
Example for using the mainProcessPanelViewModel
variable:
<com.tomtom.ivi.platform.systemui.api.common.systemuihost.panelcontainer.SinglePanelContainer
android:id="@+id/ttivi_main_process_container"
auto:ttiviPanelContainerContext="@{panelContainerContext}"
auto:ttiviPanelContainerData="@{mainProcessPanelViewModel.getMainProcessPanel(ProcessPanelPosition.BOTTOM)}" />
If the main process panel is to be shown at a single position, this SystemUiHostExtension can be excluded and the main process panel can be bound to the PanelContainer directly from the IviPanelRegistry. For example:
<com.tomtom.ivi.platform.systemui.api.common.systemuihost.panelcontainer.SinglePanelContainer
auto:ttiviPanelContainerContext="@{panelContainerContext}"
auto:ttiviPanelContainerData="@{panelRegister.mainProcessPanel}" />
Parameters
The SystemUiHostExtensionContext of the SystemUiHost.
The active MainProcessPanels.