ClosePanelsOnTaskPanelChangeFrontendCoordinationRule
open class ClosePanelsOnTaskPanelChangeFrontendCoordinationRule<P : AnyPanel>(panelClass: KClass<P>, activeTaskPanelStackData: LiveData<TaskPanelStackData>) : FrontendCoordinationRule
Content copied to clipboard
A rule that ensures Panels of type P are closed when the active TaskPanels change.
Parameters
P
The type of the Panels to close when the activeTaskPanelStackData changes.
panelClass
The KClass of the Panels to close when the activeTaskPanelStackData changes.
activeTaskPanelStackData
The TaskPanelStackData to observe in order to close Panels of type P.
Constructors
Link copied to clipboard
fun <P : AnyPanel> ClosePanelsOnTaskPanelChangeFrontendCoordinationRule(panelClass: KClass<P>, activeTaskPanelStackData: LiveData<TaskPanelStackData>)
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.