ClosePanelsOnMenuItemClickFrontendCoordinationRule
open class ClosePanelsOnMenuItemClickFrontendCoordinationRule<P : AnyPanel>(panelClass: KClass<P>) : FrontendCoordinationRule
A rule that ensures Panels of type P are closed when a system UI menu item is clicked.
Even when using ClosePanelsOnTaskPanelChangeFrontendCoordinationRule, this rule is valuable because not all menu item clicks lead to TaskPanels changing.
Constructors
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.