Package-level declarations

Types

Link copied to clipboard
@IviExperimental(reasons = [])
abstract class PanelFragmentAdapter

Restores and updates panel attachments to panel fragment containers. Exposed as an API to PanelContainerControllerAdapter.

Link copied to clipboard

Builds a panel fragment adapter. A panel fragment adapter attaches and detaches Panels to a panel fragment container.

Link copied to clipboard
@IviExperimental(reasons = [])
data class PanelFragmentAdapterState(val hasPanelAttached: Boolean)
Link copied to clipboard
@IviExperimental(reasons = [])
class PanelStackAttachment<P : GenericPanel<C>, C : CommonPanelContext>(val panelStack: PanelList<P>, val panelContextFactory: (P, CommonPanelContext) -> C)

Attaches a panelStack. For each panel a panel context of type C is created by panelContextFactory.

Link copied to clipboard
@IviExperimental(reasons = [])
class SinglePanelAttachment<P : GenericPanel<C>, C : CommonPanelContext>(val panel: P?, val panelContextFactory: (CommonPanelContext) -> C)

Attaches a single panel with a panel context of type C as created by panelContextFactory.

Functions

Link copied to clipboard

Detaches the panel attaches of the panel fragment containers of all PanelFragmentAdapters.

Link copied to clipboard

Notifies all PanelFragmentAdapters that system UI is destroyed. May be used to clean an internal state.

Link copied to clipboard

Restores panel attachments to restored panel fragment containers of all PanelFragmentAdapters

Link copied to clipboard

Updates the panel attachments of the panel fragment containers of all PanelFragmentAdapters. Any panel that needs to be detached is detached before any new panel is attached.