PanelContainerController

Manages the contents of a PanelContainer.

Responsible for visualizing the panelContainerData inside a container. See onPanelContainerDataChanged for details.

This class facilitates that by managing the internal lifecycle, the lifecycle of the Fragments for each attached panel and the panel stack.

Note: bind must be called before instance of PanelContainerController can be used.

Parameters

V

The panel container ViewGroup type that implements the PanelContainer interface.

VM

The panel sub-container view model type.

CD

The type of the panel container data. The panel container data is the input data that is visualized by the panel container.

SD

The type of the panel sub-container data. The data is derived from the panelContainerData.

Properties

Link copied to clipboard

The panel sub-container view models.

Functions

Link copied to clipboard

Binds this controller to the system UI with the given panelContainerContext. A controller may only be bound once and must be unbound through unbind when destroying the controller.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun unbind()

Unbinds this controller from the system UI. The controller must have been bound through bind first.