epoxy-processor / com.airbnb.epoxy.processor / GeneratedModelWriter / BuilderHooks

BuilderHooks

class BuilderHooks

Constructors

<init>

BuilderHooks()

Functions

addToBindMethod

open fun addToBindMethod(methodBuilder: Builder, boundObjectParam: ParameterSpec): Unit

True true to have the bind method build, false to not add the method to the generated class.

addToBindWithDiffMethod

open fun addToBindWithDiffMethod(methodBuilder: Builder, boundObjectParam: ParameterSpec, previousModelParam: ParameterSpec): Unit

True true to have the bind method build, false to not add the method to the generated class.

addToHandlePostBindMethod

open fun addToHandlePostBindMethod(postBindBuilder: Builder, boundObjectParam: ParameterSpec): Unit

addToUnbindMethod

open fun addToUnbindMethod(unbindBuilder: Builder, unbindParamName: String): Unit

Opportunity to add additional code to the unbind method.

addToVisibilityChangedMethod

open fun addToVisibilityChangedMethod(visibilityBuilder: Builder, visibilityParamName: String): Unit

Opportunity to add additional code to the visibilityChanged method.

addToVisibilityStateChangedMethod

open fun addToVisibilityStateChangedMethod(visibilityBuilder: Builder, visibilityParamName: String): Unit

Opportunity to add additional code to the visibilityStateChanged method.

beforeFinalBuild

open fun beforeFinalBuild(builder: Builder): Unit