DismissablePanelStackData

open class DismissablePanelStackData<P : AnyDismissablePanel>(stackedPanels: DismissablePanelList<P>) : PanelStackData<P>

A panel data containing a stack of dismissible Panels of type P. The last (top) one should be presented to the user, while the rest is hidden under the top Panel.

Parameters

stackedPanels

The list of dismissible Panels in the stack.

Constructors

Link copied to clipboard
fun <P : AnyDismissablePanel> DismissablePanelStackData(stackedPanels: DismissablePanelList<P>)

Inherited properties

Link copied to clipboard
open val stackedPanels: PanelList<P>

Functions

Link copied to clipboard
fun containsUndismissedPanel(): LiveData<Boolean>

Returns whether the stack contains any Panel of type P that has not been dismissed yet.

Link copied to clipboard
fun dismiss()

Dismisses all panels in the stack.

Inherited functions

Link copied to clipboard
fun topOrNull(): P?

Gets the top-most panel of the stack.

Inheritors

Link copied to clipboard
Link copied to clipboard