IviPanelRegistrySystemUiHostExtension
class IviPanelRegistrySystemUiHostExtension(systemUiHostExtensionContext: SystemUiHostExtensionContext) : SystemUiHostExtension
SystemUiHostExtension for using the default FrontendCoordinator and default IviPanelRegistry as part of the system UI.
This SystemUiHostExtension binds the IviPanelRegistry instance to the panelRegistry
binding data variable.
System UI layouts can define the following to use the bound view model:
<data>
<variable
name="panelRegistry"
type="com.tomtom.ivi.platform.systemui.api.common.frontendcoordinator.IviPanelRegistry" />
</data>
Content copied to clipboard
Example for using the panelRegistry
variable:
<com.tomtom.ivi.platform.systemui.api.common.systemuihost.panelcontainer.SinglePanelContainer
android:id="@+id/ttivi_home_container"
auto:ttiviPanelContainerContext="@{panelContainerContext}"
auto:ttiviPanelContainerData="@{panelRegistry.homePanel}"
/>
Content copied to clipboard
Exclude this SystemUiHostExtension in a custom system UI if a custom FrontendCoordinator and/or custom PanelRegistry should be used.
Parameters
systemUiHostExtensionContext
The SystemUiHostExtensionContext of the SystemUiHost.
Constructors
Link copied to clipboard
fun IviPanelRegistrySystemUiHostExtension(systemUiHostExtensionContext: SystemUiHostExtensionContext)
Properties
Link copied to clipboard
Whether all frontends with the FrontendCreationPolicy.CREATE_FRONTEND_AT_STARTUP frontend creation policy are ready.
Link copied to clipboard