ClosePanelsOnMenuItemClickFrontendCoordinationRule
open class ClosePanelsOnMenuItemClickFrontendCoordinationRule<P : AnyPanel>(panelClass: KClass<P>) : FrontendCoordinationRule
Content copied to clipboard
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
Link copied to clipboard
fun <P : AnyPanel> ClosePanelsOnMenuItemClickFrontendCoordinationRule(panelClass: KClass<P>)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun activate( lifecycleOwner: LifecycleOwner, iviServiceProvider: IviInstanceBoundIviServiceProvider, frontends: LiveData<out Collection<Frontend>>)
Content copied to clipboard
Actives the rule within the scope of the given lifecycleOwner.