Refactor SKSubDescriptor
Reviewed By: d16r Differential Revision: D20458337 fbshipit-source-id: e8ea848c6e2f7521c5a6c6eb4110bba0bfe25593
This commit is contained in:
committed by
Facebook GitHub Bot
parent
19876273a3
commit
d9a2167019
@@ -10,20 +10,8 @@
|
||||
@class SKComponentLayoutWrapper;
|
||||
|
||||
/**
|
||||
A SKSubDescriptor is an object which knows how to expose an Object of type T
|
||||
to the SKLayoutDescriptor. This class is for frameworks wanting to pass data
|
||||
A SKSubDescriptor is a function which knows how to expose additional data
|
||||
to SKLayoutDescriptor. This class is for frameworks wanting to pass data
|
||||
along through the Layout Descriptor.
|
||||
*/
|
||||
@interface SKSubDescriptor : NSObject
|
||||
|
||||
/**
|
||||
This is the SubDescriptor name.
|
||||
*/
|
||||
- (NSString*)getName;
|
||||
|
||||
/**
|
||||
This is the data the SubDescriptor wants to pass up to the SKLayoutDescriptor.
|
||||
*/
|
||||
- (NSString*)getDataForNode:(SKComponentLayoutWrapper*)node;
|
||||
|
||||
@end
|
||||
typedef NSString* (*SKSubDescriptor)(SKComponentLayoutWrapper* node);
|
||||
|
||||
Reference in New Issue
Block a user