1313#import < AsyncDisplayKit/ASDealloc2MainObject.h>
1414
1515
16+ /* *
17+ * UIView creation block. Used to create the backing view of a new display node.
18+ */
1619typedef UIView *(^ASDisplayNodeViewBlock)();
20+ /* *
21+ * CALayer creation block. Used to create the backing layer of a new display node.
22+ */
1723typedef CALayer *(^ASDisplayNodeLayerBlock)();
1824
1925/* *
@@ -50,6 +56,8 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
5056/* *
5157 * @abstract Alternative initializer with a block to create the backing view.
5258 *
59+ * @param viewBlock The block that will be used to create the backing view.
60+ *
5361 * @return An ASDisplayNode instance that loads its view with the given block that is guaranteed to run on the main
5462 * queue. The view will render synchronously and -layout and touch handling methods on the node will not be called.
5563 */
@@ -58,6 +66,8 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
5866/* *
5967 * @abstract Alternative initializer with a block to create the backing layer.
6068 *
69+ * @param viewBlock The block that will be used to create the backing layer.
70+ *
6171 * @return An ASDisplayNode instance that loads its layer with the given block that is guaranteed to run on the main
6272 * queue. The layer will render synchronously and -layout and touch handling methods on the node will not be called.
6373 */
@@ -331,7 +341,7 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
331341 * This method is used to notify the node that it should purge any content that is both expensive to fetch and to
332342 * retain in memory.
333343 *
334- * @see clearFetchedData and fetchData
344+ * @see ASDisplayNode(Subclassing): clearFetchedData and fetchData
335345 */
336346- (void )recursivelyClearFetchedData ;
337347
@@ -340,7 +350,7 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
340350 *
341351 * @discussion Fetches content from remote sources for the current node and all subnodes.
342352 *
343- * @see fetchData and clearFetchedData
353+ * @see ASDisplayNode(Subclassing): fetchData and clearFetchedData
344354 */
345355- (void )recursivelyFetchData ;
346356
@@ -555,18 +565,22 @@ typedef CALayer *(^ASDisplayNodeLayerBlock)();
555565@interface ASDisplayNode (ASDisplayNodeAsyncTransactionContainer) <ASDisplayNodeAsyncTransactionContainer>
556566@end
557567
558-
568+ /* * UIVIew(AsyncDisplayKit) defines convenience method for adding sub-ASDisplayNode to an UIView. */
559569@interface UIView (AsyncDisplayKit)
560570/* *
561571 * Convenience method, equivalent to [view addSubview:node.view] or [view.layer addSublayer:node.layer] if layer-backed.
572+ *
573+ * @param node The node to be added.
562574 */
563575- (void )addSubnode : (ASDisplayNode *)node ;
564576@end
565577
566-
578+ /* * CALayer(AsyncDisplayKit) defines convenience method for adding sub-ASDisplayNode to a CALayer. */
567579@interface CALayer (AsyncDisplayKit)
568580/* *
569581 * Convenience method, equivalent to [layer addSublayer:node.layer].
582+ *
583+ * @param node The node to be added.
570584 */
571585- (void )addSubnode : (ASDisplayNode *)node ;
572586@end
0 commit comments