Package com.tomtom.ivi.platform.systemui.api.common.systemuihost.containercontrollers.panelfragmentadapter

Types

Link copied to clipboard
abstract class PanelFragmentAdapter

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

Link copied to clipboard
interface PanelFragmentAdapterBuilder

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

Link copied to clipboard
data class PanelFragmentAdapterState(val hasPanelAttached: Boolean)
Link copied to clipboard
class PanelStackAttachment<P : GenericPanel<C>, C : PanelContext>(val panelStack: PanelList<P>, val panelContextFactory: (P, PanelContext) -> C)

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

Link copied to clipboard
class SinglePanelAttachment<P : GenericPanel<C>, C : PanelContext>(val panel: P?, val panelContextFactory: (PanelContext) -> C)

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

Functions

Link copied to clipboard
fun Collection<PanelFragmentAdapter>.detachPanelAttachments(allowStateLoss: Boolean = false)

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

Link copied to clipboard
fun Collection<PanelFragmentAdapter>.restorePanelAttachments()

Restores panel attachments to restored panel fragment containers of all PanelFragmentAdapters

Link copied to clipboard
fun Collection<PanelFragmentAdapter>.updatePanelAttachments(allowStateLoss: Boolean = false)

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.