epoxy-adapter / com.airbnb.epoxy / EpoxyDiffLogger

EpoxyDiffLogger

open class EpoxyDiffLogger : AdapterDataObserver

This data observer can be registered with an Epoxy adapter or controller to log all item change events. This may be useful to use in debug builds in order to observe model updates and monitor for issues.

You may want to look for unexpected item updates to catch improper hashCode/equals implementations in your models.

Additionally, you may want to look for frequent or unnecessary updates as an opportunity for optimization.

Constructors

<init>

EpoxyDiffLogger(tag: String!)

Functions

onItemRangeChanged

open fun onItemRangeChanged(positionStart: Int, itemCount: Int): Unit
open fun onItemRangeChanged(positionStart: Int, itemCount: Int, payload: Any?): Unit

onItemRangeInserted

open fun onItemRangeInserted(positionStart: Int, itemCount: Int): Unit

onItemRangeMoved

open fun onItemRangeMoved(fromPosition: Int, toPosition: Int, itemCount: Int): Unit

onItemRangeRemoved

open fun onItemRangeRemoved(positionStart: Int, itemCount: Int): Unit