toNavigablePanelStackData
fun <P : GenericDismissablePanel<C>, PanelDescriptorProvider, C : PanelContext> PanelList<P>.toNavigablePanelStackData(panel: P): LiveData<NavigablePanelStackData>
Content copied to clipboard
Transforms the PanelList into a LiveData. This is useful when using createNavigablePanelContext to create a NavigablePanelContext.
panel is the panel that is currently active.
Parameters
P
The type of the panel. It needs to be a GenericDismissablePanel and a PanelDescriptorProvider.
C
The type of PanelContext.