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

addModelBuildListener

open fun addModelBuildListener(listener: OnModelBuildFinishedListener!): Unit

Add a listener that will be called every time #buildModels() has finished running and changes have been dispatched to the RecyclerView.

Since buildModels can be called once for many calls to #requestModelBuild(), this is called just once for each buildModels execution, not for every request.

Use this to react to changes in your models that need to happen after the RecyclerView has been notified, such as scrolling.