SingleTaskPanelStackFrontendCoordinationRule
class SingleTaskPanelStackFrontendCoordinationRule(activeTaskPanelStackData: LiveData<TaskPanelStackData>) : SinglePanelStackFrontendCoordinationRule<TaskPanel, TaskPanelStackData>
Content copied to clipboard
A rule that ensures there is only a single Frontend that shows TaskPanels at any time. It does this by closing the TaskPanels of other Frontends when a Frontend opens a new TaskPanel.
Parameters
activeTaskPanelStackData
The TaskPanelStackData to observe in order to close other Frontends' TaskPanels.
Constructors
Link copied to clipboard
fun SingleTaskPanelStackFrontendCoordinationRule(panelRegistry: IviPanelRegistry)
Content copied to clipboard
A convenience constructor that extracts the default TaskPanelStackData from the given panelRegistry.
Link copied to clipboard
fun SingleTaskPanelStackFrontendCoordinationRule(activeTaskPanelStackData: LiveData<TaskPanelStackData>)
Content copied to clipboard
Inherited 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.