FocusMenuItemOnTaskPanelChangeFrontendCoordinationRule
fun FocusMenuItemOnTaskPanelChangeFrontendCoordinationRule(getMenuItemId: (FrontendContext) -> MenuItem.Id?, panelRegistry: IviPanelRegistry)
Content copied to clipboard
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>)
Content copied to clipboard
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.