SinglePanelStackFrontendCoordinationRule

A rule that ensures there is only a single Frontend that shows Panels of type Ps at any time. It does this by closing the Panels of type Ps belonging to other Frontends when a Frontend opens a new one, causing activeStack to change.

Parameters

P

The type of the Panels to close when the Frontend owning the activeStack changes

S

The type of the PanelStackData.

panelClass

The KClass of the Panels to close when the Frontend owning the activeStack changes.

activeStack

The PanelStackData to observe in order to close other Frontends' Panels.

Constructors

Types

Link copied to clipboard
object Companion

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.

Inheritors