CloseModalPanelsOnTaskPanelChangeFrontendCoordinationRule
class CloseModalPanelsOnTaskPanelChangeFrontendCoordinationRule(activeTaskPanelStackData: LiveData<TaskPanelStackData>) : ClosePanelsOnTaskPanelChangeFrontendCoordinationRule<ModalPanel>
A rule that ensures ModalPanels are closed when the active TaskPanels change.
This prevents newly opened TaskPanels from being hidden by a ModalPanel hovering above it and avoids lingering ModalPanels after the TaskPanelStackData closes.
Parameters
activeTaskPanelStackData
The TaskPanelStackData to observe in order to close ModalPanels.
Constructors
Link copied to clipboard
A convenience constructor that extracts the default TaskPanelStackData from the given panelRegistry.
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.