DiffPayload

open class DiffPayload

A helper class for tracking changed models found by the com.airbnb.epoxy.DiffHelper to be included as a payload in the notifyItemChanged call.

Constructors

DiffPayload
Link copied to clipboard
open fun DiffPayload(changedItem: EpoxyModel<out Any>)

Functions

getModelFromPayload
Link copied to clipboard
open fun getModelFromPayload(payloads: List<Any>, modelId: Long): EpoxyModel<out Any>
Looks through the payloads list and returns the first model found with the given model id.