epoxy-adapter / com.airbnb.epoxy / SimpleEpoxyAdapter

SimpleEpoxyAdapter

open class SimpleEpoxyAdapter : EpoxyAdapter

A non-abstract version of com.airbnb.epoxy.EpoxyAdapter that exposes all methods and models as public. Use this if you don't want to create your own adapter subclass and instead want to modify the adapter from elsewhere, such as from an activity.

Constructors

<init>

SimpleEpoxyAdapter()

A non-abstract version of com.airbnb.epoxy.EpoxyAdapter that exposes all methods and models as public. Use this if you don't want to create your own adapter subclass and instead want to modify the adapter from elsewhere, such as from an activity.

Inherited Properties

models

val models: MutableList<EpoxyModel<*>!>!

Subclasses should modify this list as necessary with the models they want to show. Subclasses are responsible for notifying data changes whenever this list is changed.

Functions

addModels

open fun addModels(vararg modelsToAdd: EpoxyModel<*>!): Unit
open fun addModels(modelsToAdd: MutableCollection<out EpoxyModel<*>!>!): Unit

enableDiffing

open fun enableDiffing(): Unit

getAllModelsAfter

open fun getAllModelsAfter(model: EpoxyModel<*>!): MutableList<EpoxyModel<*>!>!

getBoundViewHolders

open fun getBoundViewHolders(): BoundViewHolders!

getModelPosition

open fun getModelPosition(model: EpoxyModel<*>!): Int

getModels

open fun getModels(): MutableList<EpoxyModel<*>!>!

hideAllAfterModel

open fun hideAllAfterModel(model: EpoxyModel<*>!): Unit

hideModel

open fun hideModel(model: EpoxyModel<*>!): Unit

hideModels

open fun hideModels(epoxyModels: MutableIterable<EpoxyModel<*>!>!): Unit
open fun hideModels(vararg models: EpoxyModel<*>!): Unit

insertModelAfter

open fun insertModelAfter(modelToInsert: EpoxyModel<*>!, modelToInsertAfter: EpoxyModel<*>!): Unit

insertModelBefore

open fun insertModelBefore(modelToInsert: EpoxyModel<*>!, modelToInsertBefore: EpoxyModel<*>!): Unit

notifyModelChanged

open fun notifyModelChanged(model: EpoxyModel<*>!): Unit

notifyModelsChanged

open fun notifyModelsChanged(): Unit

removeAllAfterModel

open fun removeAllAfterModel(model: EpoxyModel<*>!): Unit

removeAllModels

open fun removeAllModels(): Unit

removeModel

open fun removeModel(model: EpoxyModel<*>!): Unit

showModel

open fun showModel(model: EpoxyModel<*>!, show: Boolean): Unit
open fun showModel(model: EpoxyModel<*>!): Unit

showModels

open fun showModels(vararg models: EpoxyModel<*>!): Unit
open fun showModels(show: Boolean, vararg models: EpoxyModel<*>!): Unit
open fun showModels(epoxyModels: MutableIterable<EpoxyModel<*>!>!): Unit
open fun showModels(epoxyModels: MutableIterable<EpoxyModel<*>!>!, show: Boolean): Unit

Inherited Functions

addModel

open fun addModel(modelToAdd: EpoxyModel<*>!): Unit

Adds the model to the end of the #models list and notifies that the item was inserted.

notifyModelChanged

open fun notifyModelChanged(model: EpoxyModel<*>!, payload: Any?): Unit

Notify that the given model has had its data changed. It should only be called if the model retained the same position.