SystemUiMenuItemsService

interface SystemUiMenuItemsService

This service provides the means for the system UI to register menu items to show in a menu frontend and to register click event listeners for those menu items.

This service is a multiple instance interface because a product may provide multiple menus, for example, there can be different menus for a driver display and a passenger display.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface MenuItemEventListener

An interface for listeners interested in MenuItem clicks.

Functions

Link copied to clipboard
abstract suspend fun registerMenuItem(menuItem: MenuItem)

Register the given MenuItem.

Link copied to clipboard
abstract suspend fun registerMenuItems(menuItems: List<MenuItem>)

Register the given list of MenuItems.