Add the ability to attach data to a java CSSNode

Summary: The C version already has this ability via the same name 'context'. This can be used to attach arbitrary data about your view hierarchy to a CSSNode. Previously this could only be done in java via subclassing CSSNode.

Reviewed By: lucasr

Differential Revision: D3662065

fbshipit-source-id: 560a768092f17381e99b349d08bd4a8b365541be
This commit is contained in:
Emil Sjolander authored and Facebook Github Bot 9 committed 2016-08-04 08:23:02 -07:00
1 parent b32d384337
commit 9278ff462e
3 files changed
+24

No files matched your search

@@ -88,6 +88,8 @@ public interface CSSNodeAPI<CSSNodeType extends CSSNodeAPI> {
void setDefaultPadding(int spacingType, float padding);
CSSOverflow getOverflow();
void setOverflow(CSSOverflow overflow);
void setData(Object data);
Object getData();
void init();
void reset();
}