mapToActiveTaskPanelStackData

fun LiveData<out AnyPanelCollection>.mapToActiveTaskPanelStackData(): LiveData<TaskPanelStackData>

Maps a collection containing all AnyPanels of all Frontends to an active TaskPanelStackData.

The TaskPanelStackData will contain all TaskPanels from a single Frontend. Which Frontend's TaskPanels to include is based on which Frontend is considered to be the 'active' one for TaskPanels. This is determined by the most recently opened TaskPanel. If the collection also contains a TaskProcessPanel belonging to the active Frontend, it will be included in the TaskPanelStackData.

If no TaskPanel is present in the collection, an empty TaskPanelStackData will be returned.