Package 

Class SimpleEpoxyController

    • Method Summary

      Modifier and Type Method Description
      void setModels(List<out EpoxyModel<out Object>> models) Set the models to add to this controller.
      final void requestModelBuild() Call this to request a model update.
      • Methods inherited from class com.airbnb.epoxy.EpoxyController

        add, addInterceptor, addModelBuildListener, cancelPendingModelBuild, getAdapter, getSpanCount, getSpanSizeLookup, hasPendingModelBuild, isDebugLoggingEnabled, isDuplicateFilteringEnabled, isMultiSpan, isStickyHeader, moveModel, notifyModelChanged, onRestoreInstanceState, onSaveInstanceState, removeInterceptor, removeModelBuildListener, requestDelayedModelBuild, setDebugLoggingEnabled, setFilterDuplicates, setGlobalDebugLoggingEnabled, setGlobalDuplicateFilteringDefault, setGlobalExceptionHandler, setSpanCount, setupStickyHeaderView, teardownStickyHeaderView
      • Methods inherited from class com.airbnb.epoxy.ModelCollector

        add
      • Methods inherited from class com.airbnb.epoxy.stickyheader.StickyHeaderCallbacks

        isStickyHeader, setupStickyHeaderView, teardownStickyHeaderView
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setModels

         void setModels(List<out EpoxyModel<out Object>> models)

        Set the models to add to this controller. Clears any previous models and adds this new list.

      • requestModelBuild

         final void requestModelBuild()

        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 requestedall subsequent requests are ignored until the model build runs. Therefore, the calling codeneed 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 viewto be draw quicker.

        If you would like to be alerted when models have finished building use addModelBuildListener