Package com.airbnb.epoxy
Annotation Type CallbackProp
-
@Target({METHOD,FIELD}) @Retention(CLASS) public @interface CallbackPropA convenient replacement forModelPropwhen the prop represents a callback or listener.This is the same as using
ModelPropwith the optionsModelProp.Option.NullOnRecycleandModelProp.Option.DoNotHashThis can only be used on setters who's parameter is marked as nullable. The prop will be set to null when the view is recycled to ensure that the listener is not leaked.
Be aware that since this applies the option
ModelProp.Option.DoNotHashchanging the value of the listener will not trigger an update to the view.