The base block of the library is the Element
class. Each element holds our model data,
a reference to the source that created it, and an Int
value called the element type.
class Element<T: Any>(source: Source<T>, type: Int, data: T?, extra: Any?)
The element type is the mechanism through which we link presenters (the UI component) and sources (the data loading component):
Source.getElementType(T): Int
callbackPresenter.elementTypes
abstract collectionIn case more presenters declare to be able to lay out a given type, the order in which they are added to the adapter counts.
Keep reading to learn about presenters and sources!