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

Interceptor

interface Interceptor

A callback that is run after #buildModels() completes and before diffing is run.

Functions

intercept

abstract fun intercept(models: MutableList<EpoxyModel<*>!>): Unit

This is called immediately after #buildModels() and before diffing is run and the models are set on the adapter. This is a final chance to make any changes to the the models added in #buildModels(). This may be useful for actions that act on all models in aggregate, such as toggling divider settings, or for cases such as rearranging models for an experiment.