OnBindDynamicValue

EXPERIMENTAL. This is a part of new experimental API. There is no guarantee that this API will work or that it will remain the same.

A method annotation used in MountSpec classes to indicate methods that apply current value of dynamic prop Prop to the mounted content.

For every dynamic Prop, ComponentSpec should provide exactly one method.

Every OnBindDynamicValue takes two parameters: 1st - mounted content object; 2nd - current value of the dynamic Prop, which needs to be applied to the mount content.

The method should return void.

This callback will be invoked when a Component is being bound and after that, every time when value of dynamic Prop changes until the Component is unbound.

See also

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