CloseModalPanelsOnMenuItemClickFrontendCoordinationRule

A rule that ensures ModalPanels are closed when a system UI menu item is clicked.

This allows the user to navigate to other Panels without them being overlapped by a ModalPanel. Even when using CloseModalPanelsOnTaskPanelChangeFrontendCoordinationRule, this rule is valuable because not all menu item clicks lead to TaskPanels changing. E.g., if the HomePanel is overlapped by a ModalPanel, this rule allows the user to see the HomePanel again by pressing the menu item of the Frontend containing the HomePanel.

The rule is only concerned with system UI menu item clicks as it is expected that clicks on any other menu items will result in a TaskPanel change.

Constructors

Inherited functions

Link copied to clipboard
open override fun activate(lifecycleOwner: LifecycleOwner, iviServiceProvider: IviInstanceBoundIviServiceProvider, frontends: LiveData<out Collection<Frontend>>)

Actives the rule within the scope of the given lifecycleOwner.