SystemUiHostExtensionContext
Information about the environment that a SystemUiHostExtension runs in.
Parameters
The SystemUiHost instance.
The view model for the state of the system UI's core functionality.
The lifecycle to which the system UI is bound. It is not stopped or destroyed when a theme change triggers view recreation, so don't provide this LifecycleOwner to views that are recreated at that time. Use viewLifecycleOwner instead.
The lifecycle to which the system UI's view is bound. This lifecycle remains in the Lifecycle.State.CREATED state until theming is applied.
Used for managing the system UI's view model(s).
The ID for the IVI instance that this system UI instance operates in.
The IviServiceProvider that is bound to the IviInstanceId associated to the SystemUiHost. The IviServiceProvider can provide IVI service API instances that are bound the IviInstanceId, and global IVI service API instances.
Allows retrieving the values of static configurations.
A function to set a list of components represented in the system UI, capable of handling back presses. The last added callback that is currently enabled receives the back press. Note: This function is expected to be called once within a system UI host view lifecycle, see SystemUiHost.setIviOnBackPressedCallbacks for more details. Calling this function a second time will result in an IllegalStateException.