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:
committed by
Facebook Github Bot 9
parent
b32d384337
commit
9278ff462e
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user