PanelSubContainerManager
An interface to manage a sub-container views. New sub-container view or views wrapped into PanelSubContainerHolder.
PanelContainerController is responsible for animating creation and removal of sub-container views. A manager can indicate the removal of a sub-container and its animation should not be performed by returning false
from canBeRemoved. For example, a manager may need to postpone a removal for a sub-container that is being dismissed.
Parameters
The type of panel data that populates the container view. It can be a single panel, a collection of panels or any other panel-related type.
The type of a sub-container state that is used to restore a sub-container after configuration change.
The type of a sub-container holder that is managed.
Functions
Creates a new PanelSubContainerHolder of type H, inflating or creating views for a sub-container. Views are attached it to parent, using lifecycleOwner for data binding. panelData and subContainerState is optional information.
Whether views in subContainerHolder can be removed. It should be checked before calling removeSubContainer.
Removes subContainerHolder, destroying views for a sub-container.