OnUnbind

annotation class 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).

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String