PanelContainerController
abstract class PanelContainerController<D, VM>(panelData: LiveData<out D?>)
Content copied to clipboard
A base class for managing the contents of a container of panels.
Implementations are responsible for visualising the panelData inside a container. See onPanelDataChanged for details.
This base class facilitates that by managing the internal lifecycle, the lifecycle of the Fragments for each attached panel and the panel stack.
Parameters
VM
The panel sub-container view model type.
Constructors
Types
Link copied to clipboard
class PanelSubContainerStateViewModel<S : PanelSubContainerState>(val subContainerStates: MutableList<S> = mutableListOf()) : ViewModel
Content copied to clipboard
A wrapper for a collection of sub-container states of type S. It is used to store the collection in ViewModel store. The collection can be loaded with the stateViewModel delegate.
Properties
Functions
Link copied to clipboard
Binds this controller to the system UI with the given panelContainerViewContext. A controller may only be bound once and must be unbound through unbind when destroying the controller.