FocusMenuItemOnTaskPanelChangeFrontendCoordinationRule
fun FocusMenuItemOnTaskPanelChangeFrontendCoordinationRule(getMenuItemId: (FrontendContext) -> MenuItem.Id?, panelRegistry: IviPanelRegistry)
A convenience constructor that extracts the default HomePanel and TaskPanelStackData from the given panelRegistry.
fun FocusMenuItemOnTaskPanelChangeFrontendCoordinationRule(getMenuItemId: (FrontendContext) -> MenuItem.Id?, activeHomePanel: LiveData<HomePanel?>, activeTaskPanelStackData: LiveData<TaskPanelStackData>)
Parameters
getMenuItemId
A function that allows the rule to retrieve the MenuItem.Id from the focused FrontendContext in order to inform the MenuService which menu item to focus.
activeHomePanel
The HomePanel that indicates which Frontend is focused if there is no active TaskPanelStackData.
activeTaskPanelStackData
The TaskPanelStackData to observe in order to determine the focused frontend.