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.

Inheritors

Functions

Link copied to clipboard
abstract fun areSubContainerDataTheSame(oldSubContainerData: SD, newSubContainerData: SD): Boolean

Returns true when oldSubContainerData is the same as newSubContainerData.

Link copied to clipboard
abstract fun createSubContainer(panelContainer: ViewGroup, subContainerViewModel: VM): SubContainerCreation<VM, SD>

Creates a panel sub-container. The panel sub-container must have at least one panel fragment container.

Link copied to clipboard
abstract fun getSubContainerData(panelContainerData: CD?): List<SD>

Returns the data that should be provided to each panel sub-container derived from panelContainerData.