OnUnbind
A method annotation used in classes that are annotated with 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 Props.
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).