class EpoxyControllerAdapter : BaseEpoxyAdapter, ResultCallback
fun addModelBuildListener(listener: OnModelBuildFinishedListener!): Unit |
|
fun getBoundViewHolders(): BoundViewHolders |
|
fun getCopyOfModels(): MutableList<EpoxyModel<*>!>
Get an unmodifiable copy of the current models set on the adapter. |
|
fun getItemCount(): Int |
|
fun getModelAtPosition(position: Int): EpoxyModel<*> |
|
fun getModelById(id: Long): EpoxyModel<*>?
Searches the current model list for the model with the given id. Returns the matching model if one is found, otherwise null is returned. |
|
fun getModelPosition(targetModel: EpoxyModel<*>): Int |
|
fun isDiffInProgress(): Boolean |
|
fun isStickyHeader(position: Int): Boolean
Delegates the callbacks received in the adapter to the controller. |
|
fun onAttachedToRecyclerView(recyclerView: RecyclerView): Unit |
|
fun onDetachedFromRecyclerView(recyclerView: RecyclerView): Unit |
|
fun onExceptionSwallowed(exception: RuntimeException): Unit |
|
fun onModelBound(holder: EpoxyViewHolder, model: EpoxyModel<*>, position: Int, previouslyBoundModel: EpoxyModel<*>?): Unit |
|
fun onModelUnbound(holder: EpoxyViewHolder, model: EpoxyModel<*>): Unit |
|
fun onResult(result: DiffResult): Unit |
|
fun onViewAttachedToWindow(holder: EpoxyViewHolder): Unit |
|
fun onViewDetachedFromWindow(holder: EpoxyViewHolder): Unit |
|
fun removeModelBuildListener(listener: OnModelBuildFinishedListener!): Unit |
|
fun setupStickyHeaderView(stickyHeader: View): Unit
Delegates the callbacks received in the adapter to the controller. |
|
fun teardownStickyHeaderView(stickyHeader: View): Unit
Delegates the callbacks received in the adapter to the controller. |
open fun getItemId(position: Int): Long |
|
open fun getItemViewType(position: Int): Int |
|
open fun getSpanCount(): Int |
|
open fun getSpanSizeLookup(): SpanSizeLookup!
For use with a grid layout manager - use this to get the |
|
open fun isEmpty(): Boolean |
|
open fun isMultiSpan(): Boolean |
|
open fun onBindViewHolder(holder: EpoxyViewHolder, position: Int): Unitopen fun onBindViewHolder(holder: EpoxyViewHolder, position: Int, payloads: MutableList<Any!>): Unit |
|
open fun onCreateViewHolder(parent: ViewGroup, viewType: Int): EpoxyViewHolder |
|
open fun onFailedToRecycleView(holder: EpoxyViewHolder): Boolean |
|
open fun onModelBound(holder: EpoxyViewHolder!, model: EpoxyModel<*>!, position: Int, payloads: MutableList<Any!>?): Unitopen fun onModelBound(holder: EpoxyViewHolder!, model: EpoxyModel<*>!, position: Int): Unit
Called immediately after a model is bound to a view holder. Subclasses can override this if they want alerts on when a model is bound. |
|
open fun onRestoreInstanceState(inState: Bundle?): Unit |
|
open fun onSaveInstanceState(outState: Bundle!): Unit |
|
open fun onViewRecycled(holder: EpoxyViewHolder): Unit |
|
open fun setSpanCount(spanCount: Int): Unit
If you are using a grid layout manager you must call this to set the span count of the grid. This span count will be passed on to the models so models can choose what span count to be. |