RecyclerSubContainerController
interface RecyclerSubContainerController<CD, VM : PanelSubContainerViewModel<SD>, SD>
Content copied to clipboard
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)
Content copied to clipboard
Functions
Link copied to clipboard
abstract fun areSubContainerDataTheSame(oldSubContainerData: SD, newSubContainerData: SD): Boolean
Content copied to clipboard
Returns true
when oldSubContainerData is the same as newSubContainerData.
Link copied to clipboard
abstract fun createSubContainer(parent: ViewGroup, subContainerViewModel: VM): RecyclerSubContainerController.SubContainerCreationResult<VM, SD>
Content copied to clipboard
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.