RecyclerBasicElementController

Interface to control the PanelContainerElement.BasicElements of a panel container that uses the RecyclerPanelContainerControllerAdapter. A RecyclerBasicElementController controls the basic elements of a single elementType.

Parameters

CD

The type of the panel container data that is visualized by the panel container.

SD

The type of the panel sub-container data. The data is derived from the panel container data.

BD

The type of the basic element data. The data is derived from the panel container data.

Types

Link copied to clipboard
@IviExperimental(reasons = [])
class BasicElementViewCreationResult<BD>(val basicElementView: View, val onBind: (BD) -> Unit = {})

Properties

Link copied to clipboard

Panel container element type. Must be unique per RecyclerBasicElementController.

Functions

Link copied to clipboard
abstract fun areContentsTheSame(oldElementData: BD, newElementData: BD): Boolean

Returns true when oldElementData has the same content as newElementData.

Link copied to clipboard
abstract fun areItemsTheSame(oldElementData: BD, newElement: BD): Boolean

Returns true when oldElementData is the same as newElement.

Link copied to clipboard

Returns a view to visualize a basic element of a type specified by elementType and the BasicElementViewCreationResult.onBind callback implementation which is invoked to bind the basic element data of type BD to the view.

Link copied to clipboard
abstract fun decorateList(panelContainerData: CD?, list: ExtendablePanelContainerElementList<SD, BD>)

Invoked to decorate the list with additional panel container basic elements.

Inheritors

Link copied to clipboard
Link copied to clipboard