epoxy-adapter / com.airbnb.epoxy / EpoxyController / notifyModelChanged

notifyModelChanged

open fun notifyModelChanged(position: Int): Unit

An way to notify the adapter that a model has changed. This is intended to be used with androidx.recyclerview.widget.ItemTouchHelper to allow revert swiping a model.

This will immediately notify the change to the RecyclerView.

Parameters

position - Int: Position of the item.