ClosePanelsOnTaskPanelChangeFrontendCoordinationRule
open class ClosePanelsOnTaskPanelChangeFrontendCoordinationRule<P : AnyPanel>(panelClass: KClass<P>, activeTaskPanelStackData: LiveData<TaskPanelStackData>) : FrontendCoordinationRule
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>)
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.