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