OnCreateTreeProp

An annotation for a Spec method that generates tree props. These tree props will be passed silently to all of the Component's children.

Tree props are stored in a map keyed on their individual class object, meaning there will only be one entry for tree props of any given type. PLEASE DO NOT USE COMMON JAVA CLASSES, for example, String, Integer etc; creates a wrapper class instead.

Example usage: @LayoutSpec public class MySpec { @OnCreateTreeProp SomeTreePropClass onCreateSomeTreeProp( ComponentsContext c, @Prop SomeProp prop) { return new SomeTreePropClass(prop.getSomeProperty()); } }

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