mapToActiveMainProcessPanel

fun LiveData<out Collection<AnyPanel>>.mapToActiveMainProcessPanel(): LiveData<MainProcessPanel?>

Maps a collection containing all AnyPanels of all Frontends to the active MainProcessPanel. In case multiple MainProcessPanels are present in the collection, the active one is considered the one with the highest MainProcessPanel.priority.

If no MainProcessPanel is present in the collection, null will be returned.