@Retention(value=CLASS)
public @interface OnUnbind
MountSpec
.
Methods annotated with OnUnbind
take a ComponentContext
as the first
parameter, the Object that the MountSpec
mounts as the second parameter, followed by any
number of Prop
s.
The method should return void. This callback will be invoked every time the mounted object is not active anymore but has not been unmounted yet. This happens for example when a LithoView can be in a state where it's not on the screen anymore but it's not been unmounted yet (to re-use items in place for example).