BuilderHooks

open class BuilderHooks

Functions

addToBindMethod
Link copied to clipboard
open fun addToBindMethod(methodBuilder: MethodSpec.Builder, boundObjectParam: ParameterSpec)
True true to have the bind method build, false to not add the method to the generated class.
addToBindWithDiffMethod
Link copied to clipboard
open fun addToBindWithDiffMethod(methodBuilder: MethodSpec.Builder, boundObjectParam: ParameterSpec, previousModelParam: ParameterSpec)
True true to have the bind method build, false to not add the method to the generated class.
addToHandlePostBindMethod
Link copied to clipboard
open fun addToHandlePostBindMethod(postBindBuilder: MethodSpec.Builder, boundObjectParam: ParameterSpec)
addToUnbindMethod
Link copied to clipboard
open fun addToUnbindMethod(unbindBuilder: MethodSpec.Builder, unbindParamName: String)
Opportunity to add additional code to the unbind method.
addToVisibilityChangedMethod
Link copied to clipboard
open fun addToVisibilityChangedMethod(visibilityBuilder: MethodSpec.Builder, visibilityParamName: String)
Opportunity to add additional code to the visibilityChanged method.
addToVisibilityStateChangedMethod
Link copied to clipboard
open fun addToVisibilityStateChangedMethod(visibilityBuilder: MethodSpec.Builder, visibilityParamName: String)
Opportunity to add additional code to the visibilityStateChanged method.
beforeFinalBuild
Link copied to clipboard
open fun beforeFinalBuild(builder: TypeSpec.Builder)