// // ASIndexedNodeContext.h // AsyncDisplayKit // // Created by Huy Nguyen on 2/28/16. // Copyright © 2016 Facebook. All rights reserved. // #import #import @interface ASIndexedNodeContext : NSObject @property (nonatomic, readonly, strong) NSIndexPath *indexPath; @property (nonatomic, readonly, assign) ASSizeRange constrainedSize; @property (nonatomic, readonly, assign) ASEnvironmentTraitCollection environmentTraitCollection; - (instancetype)initWithNodeBlock:(ASCellNodeBlock)nodeBlock indexPath:(NSIndexPath *)indexPath constrainedSize:(ASSizeRange)constrainedSize environmentTraitCollection:(ASEnvironmentTraitCollection)environmentTraitCollection; /** * Returns a node allocated by executing node block. Node block will be nil out immediately. */ - (ASCellNode *)allocateNode; @end