RecyclerSubContainerController
Recycler panel sub-container controller interface to control the behavior of the RecyclerPanelContainerControllerAdapter.
Parameters
CD
The type of the panel container data that is visualized by the panel container.
VM
The panel sub-container view model type.
SD
The type of the panel sub-container data. The data is derived from the panel container data.
Types
Link copied to clipboard
class SubContainerCreationResult<VM : PanelSubContainerViewModel<SD>, SD>(val subContainerHolder: PanelContainerElementHolder.SubContainerHolder<VM, SD>, val panelFragmentAdapterBuilder: PanelFragmentAdapterBuilder.() -> Unit)
Functions
Link copied to clipboard
Returns true
when oldSubContainerData is the same as newSubContainerData.
Link copied to clipboard
abstract fun createSubContainer(panelContainer: ViewGroup, subContainerViewModel: VM): RecyclerSubContainerController.SubContainerCreationResult<VM, SD>
Creates a panel sub-container. The panel sub-container must have at least one panel fragment container.
Link copied to clipboard
Returns the data that should be provided to each panel sub-container derived from panelContainerData.