Typed4 Epoxy Controller
This is a wrapper around com.airbnb.epoxy.EpoxyController to simplify how data is accessed. Use this if the data required to build your models is represented by four objects.
To use this, create a subclass typed with your data object. Then, call setData whenever that data changes. This class will handle calling buildModels with the latest data.
You should NOT call requestModelBuild directly.
See also
Constructors
Typed4EpoxyController
Link copied to clipboard
open fun Typed4EpoxyController()
Content copied to clipboard
Typed4EpoxyController
Link copied to clipboard
open fun Typed4EpoxyController(modelBuildingHandler: Handler, diffingHandler: Handler)
Content copied to clipboard
Functions
addInterceptor
Link copied to clipboard
open fun addInterceptor(@NonNull() interceptor: EpoxyController.Interceptor)
Content copied to clipboard
addModelBuildListener
Link copied to clipboard
cancelPendingModelBuild
Link copied to clipboard
open fun cancelPendingModelBuild()
Content copied to clipboard
getAdapter
Link copied to clipboard
getSpanCount
Link copied to clipboard
getSpanSizeLookup
Link copied to clipboard
For use with a grid layout manager - use this to get the SpanSizeLookup for models inthis controller.
hasPendingModelBuild
Link copied to clipboard
isDebugLoggingEnabled
Link copied to clipboard
isDuplicateFilteringEnabled
Link copied to clipboard
isMultiSpan
Link copied to clipboard
isStickyHeader
Link copied to clipboard
notifyModelChanged
Link copied to clipboard
onRestoreInstanceState
Link copied to clipboard
onSaveInstanceState
Link copied to clipboard
removeInterceptor
Link copied to clipboard
open fun removeInterceptor(@NonNull() interceptor: EpoxyController.Interceptor)
Content copied to clipboard
Remove an interceptor that was added with addInterceptor.
removeModelBuildListener
Link copied to clipboard
open fun removeModelBuildListener(listener: OnModelBuildFinishedListener)
Content copied to clipboard
Remove a listener added with addModelBuildListener.
requestDelayedModelBuild
Link copied to clipboard
requestModelBuild
Link copied to clipboard
setDebugLoggingEnabled
Link copied to clipboard
setFilterDuplicates
Link copied to clipboard
setGlobalDebugLoggingEnabled
Link copied to clipboard
open fun setGlobalDebugLoggingEnabled(globalDebugLoggingEnabled: Boolean)
Content copied to clipboard
Similar to setDebugLoggingEnabled, but this changes the global default forall EpoxyControllers.
setGlobalDuplicateFilteringDefault
Link copied to clipboard
open fun setGlobalDuplicateFilteringDefault(filterDuplicatesByDefault: Boolean)
Content copied to clipboard
setFilterDuplicates is disabled in each EpoxyController by default.
setGlobalExceptionHandler
Link copied to clipboard
open fun setGlobalExceptionHandler(@NonNull() globalExceptionHandler: EpoxyController.ExceptionHandler)
Content copied to clipboard
setSpanCount
Link copied to clipboard
setupStickyHeaderView
Link copied to clipboard
teardownStickyHeaderView
Link copied to clipboard