GeneratedModel

interface GeneratedModel<T>

Interface applied to generated models to allow the base adapter to interact with them.

Functions

handlePostBind
Link copied to clipboard
abstract fun handlePostBind(objectToBind: T, position: Int)
Called on the generated model immediately after the main model onBind method has been called.This let's the generated model handle binding of its own and dispatch calls to its onBindlistener.
handlePreBind
Link copied to clipboard
abstract fun handlePreBind(holder: EpoxyViewHolder, objectToBind: T, position: Int)
Called on the generated model immediately before the main model onBind method has been called.