getPanelContext
The PanelContext of an IviFragment identified by iviFragmentId.
IviFragment implementations can use IviFragment.getPanelContext.
A ViewModel of an IviFragment can use this method to provide information based on the PanelContext to a view. Android views created through IviFragment.onViewCreated, by default, can use the iviFragmentId
data binding variable to obtain the IviFragmentId. Add the following to the view XML to obtain the iviFragmentId.
<data>
<variable
name="iviFragmentId"
type="com.tomtom.ivi.platform.frontend.api.common.frontend.IviFragmentId" />
</data>
Content copied to clipboard
Note: This function may only be called while the IviFragment identified by iviFragmentId is attached to the system UI.