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

requestModelBuild

open fun requestModelBuild(): Unit

Call this to request a model update. The controller will schedule a call to so that models can be rebuilt for the current data. Once a build is requested all subsequent requests are ignored until the model build runs. Therefore, the calling code need not worry about calling this multiple times in a row.

The exception is that the first time this is called on a new instance of it is run synchronously. This allows state to be restored and the initial view to be draw quicker.

If you would like to be alerted when models have finished building use #addModelBuildListener(OnModelBuildFinishedListener)