Skip to content

Commit d126056

Browse files
nguyenhuyeanagel
authored andcommitted
[appledoc] Fix appledoc warnings. (facebookarchive#553)
1 parent 4d7dd55 commit d126056

File tree

10 files changed

+111
-16
lines changed

10 files changed

+111
-16
lines changed

AsyncDisplayKit/ASCollectionView.h

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,36 @@
3131
@property (nonatomic, weak) id<ASCollectionViewDelegate> asyncDelegate; // must not be nil
3232

3333
/**
34-
* Tuning parameters for a range.
34+
* Tuning parameters for a range type.
3535
*
36-
* @param range The range to get the tuning parameters for.
36+
* @param rangeType The range type to get the tuning parameters for.
3737
*
38-
* @returns A tuning parameter value for the given range.
38+
* @returns A tuning parameter value for the given range type.
3939
*
4040
* Defaults to the render range having one sceenful both leading and trailing and the preload range having two
4141
* screenfuls in both directions.
4242
*/
4343
- (ASRangeTuningParameters)tuningParametersForRangeType:(ASLayoutRangeType)rangeType;
4444

4545
/**
46-
* Set the tuning parameters for a range.
46+
* Set the tuning parameters for a range type.
4747
*
48-
* @param tuningParameters The tuning parameters to store for a range.
49-
* @param range The range to set the tuning parameters for.
48+
* @param tuningParameters The tuning parameters to store for a range type.
49+
* @param rangeType The range type to set the tuning parameters for.
5050
*/
5151
- (void)setTuningParameters:(ASRangeTuningParameters)tuningParameters forRangeType:(ASLayoutRangeType)rangeType;
5252

5353
/**
5454
* Initializer.
5555
*
56+
* @param frame The frame rectangle for the collection view, measured in points. The origin of the frame is relative to the superview
57+
* in which you plan to add it. This frame is passed to the superclass during initialization.
58+
*
59+
* @param layout The layout object to use for organizing items. The collection view stores a strong reference to the specified object.
60+
* Must not be nil.
61+
*
62+
* @param asyncDataFetchingEnabled Enable the data fetching in async mode.
63+
*
5664
* @discussion If asyncDataFetching is enabled, the `AScollectionView` will fetch data through `collectionView:numberOfRowsInSection:` and
5765
* `collectionView:nodeForRowAtIndexPath:` in async mode from background thread. Otherwise, the methods will be invoked synchronically
5866
* from calling thread.
@@ -156,7 +164,7 @@
156164
/**
157165
* Similar to -collectionView:cellForItemAtIndexPath:.
158166
*
159-
* @param collection The sender.
167+
* @param collectionView The sender.
160168
*
161169
* @param indexPath The index path of the requested node.
162170
*

AsyncDisplayKit/ASControlNode.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,21 @@
1515
*/
1616
typedef NS_OPTIONS(NSUInteger, ASControlNodeEvent)
1717
{
18+
/** A touch-down event in the control node. */
1819
ASControlNodeEventTouchDown = 1 << 0,
20+
/** A repeated touch-down event in the control node; for this event the value of the UITouch tapCount method is greater than one. */
1921
ASControlNodeEventTouchDownRepeat = 1 << 1,
22+
/** An event where a finger is dragged inside the bounds of the control node. */
2023
ASControlNodeEventTouchDragInside = 1 << 2,
24+
/** An event where a finger is dragged just outside the bounds of the control. */
2125
ASControlNodeEventTouchDragOutside = 1 << 3,
26+
/** A touch-up event in the control node where the finger is inside the bounds of the node. */
2227
ASControlNodeEventTouchUpInside = 1 << 4,
28+
/** A touch-up event in the control node where the finger is outside the bounds of the node. */
2329
ASControlNodeEventTouchUpOutside = 1 << 5,
30+
/** A system event canceling the current touches for the control node. */
2431
ASControlNodeEventTouchCancel = 1 << 6,
25-
32+
/** All events, including system events. */
2633
ASControlNodeEventAllEvents = 0xFFFFFFFF
2734
};
2835

AsyncDisplayKit/ASDisplayNode+Subclasses.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@
198198
* @abstract Indicates that the receiver is about to display its subnodes. This method is not called if there are no
199199
* subnodes present.
200200
*
201+
* @param subnode The subnode of which display is about to begin.
202+
*
201203
* @discussion Subclasses may override this method to be notified when subnode display (asynchronous or synchronous) is
202204
* about to begin.
203205
*/
@@ -207,6 +209,8 @@
207209
* @abstract Indicates that the receiver is finished displaying its subnodes. This method is not called if there are
208210
* no subnodes present.
209211
*
212+
* @param subnode The subnode of which display is about to completed.
213+
*
210214
* @discussion Subclasses may override this method to be notified when subnode display (asynchronous or synchronous) has
211215
* completed.
212216
*/

AsyncDisplayKit/ASDisplayNode.h

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
#import <AsyncDisplayKit/ASDealloc2MainObject.h>
1414

1515

16+
/**
17+
* UIView creation block. Used to create the backing view of a new display node.
18+
*/
1619
typedef UIView *(^ASDisplayNodeViewBlock)();
20+
/**
21+
* CALayer creation block. Used to create the backing layer of a new display node.
22+
*/
1723
typedef 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

AsyncDisplayKit/ASEditableTextNode.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
@protocol ASEditableTextNodeDelegate;
1313

14-
//! @abstract ASEditableTextNode implements a node that supports text editing.
14+
/// @abstract ASEditableTextNode implements a node that supports text editing.
1515
@interface ASEditableTextNode : ASDisplayNode
1616

17-
//! @abstract The text node's delegate, which must conform to the <ASEditableTextNodeDelegate> protocol.
17+
// @abstract The text node's delegate, which must conform to the <ASEditableTextNodeDelegate> protocol.
1818
@property (nonatomic, readwrite, weak) id <ASEditableTextNodeDelegate> delegate;
1919

2020
#pragma mark - Configuration
@@ -74,6 +74,11 @@
7474
@end
7575

7676
#pragma mark -
77+
/**
78+
* The methods declared by the ASEditableTextNodeDelegate protocol allow the adopting delegate to
79+
* respond to notifications such as began and finished editing, selection changed and text updated;
80+
* and manage whether a specified text should be replaced.
81+
*/
7782
@protocol ASEditableTextNodeDelegate <NSObject>
7883

7984
@optional

AsyncDisplayKit/ASMultiplexImageNode.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ typedef NS_ENUM(NSUInteger, ASMultiplexImageNodeErrorCode) {
102102

103103

104104
#pragma mark -
105+
/**
106+
* The methods declared by the ASMultiplexImageNodeDelegate protocol allow the adopting delegate to respond to
107+
* notifications such as began, progressed and finished downloading, updated and displayed an image.
108+
*/
105109
@protocol ASMultiplexImageNodeDelegate <NSObject>
106110

107111
@optional
@@ -170,6 +174,10 @@ didFinishDownloadingImageWithIdentifier:(id)imageIdentifier
170174

171175

172176
#pragma mark -
177+
/**
178+
* The ASMultiplexImageNodeDataSource protocol is adopted by an object that provides the multiplex image node,
179+
* for each image identifier, an image or a URL the image node should load.
180+
*/
173181
@protocol ASMultiplexImageNodeDataSource <NSObject>
174182

175183
@optional

AsyncDisplayKit/ASNetworkImageNode.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
/**
6262
* Download and display a new image.
6363
*
64+
* @param URL The URL of a new image to download and display.
65+
*
6466
* @param reset Whether to display a placeholder (<defaultImage>) while loading the new image.
6567
*/
6668
- (void)setURL:(NSURL *)URL resetToDefault:(BOOL)reset;
@@ -74,6 +76,10 @@
7476

7577

7678
#pragma mark -
79+
/**
80+
* The methods declared by the ASNetworkImageNodeDelegate protocol allow the adopting delegate to respond to
81+
* notifications such as fininished decoding and downloading an image.
82+
*/
7783
@protocol ASNetworkImageNodeDelegate <NSObject>
7884

7985
/**

AsyncDisplayKit/ASTableView.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,14 @@
5151
- (void)setTuningParameters:(ASRangeTuningParameters)tuningParameters forRangeType:(ASLayoutRangeType)rangeType;
5252

5353
/**
54-
* initializer.
54+
* Initializer.
55+
*
56+
* @param frame A rectangle specifying the initial location and size of the table view in its superview’€™s coordinates.
57+
* The frame of the table view changes as table cells are added and deleted.
58+
*
59+
* @param style A constant that specifies the style of the table view. See UITableViewStyle for descriptions of valid constants.
60+
*
61+
* @param asyncDataFetchingEnabled Enable the data fetching in async mode.
5562
*
5663
* @discussion If asyncDataFetching is enabled, the `ASTableView` will fetch data through `tableView:numberOfRowsInSection:` and
5764
* `tableView:nodeForRowAtIndexPath:` in async mode from background thread. Otherwise, the methods will be invoked synchronically

AsyncDisplayKit/Details/ASDataController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ typedef NSUInteger ASDataControllerAnimationOptions;
111111
@property (nonatomic, weak) id<ASDataControllerDelegate> delegate;
112112

113113
/**
114-
* Designated iniailizer.
114+
* Designated initializer.
115115
*
116116
* @param asyncDataFetchingEnabled Enable the data fetching in async mode.
117117
*

AsyncDisplayKit/Details/ASRangeController.h

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
* Notify the range controller that the visible range has been updated.
3131
* This is the primary input call that drives updating the working ranges, and triggering their actions.
3232
*
33+
* @param scrollDirection The current scroll direction of the scroll view.
34+
*
3335
* @see [ASRangeControllerDelegate rangeControllerVisibleNodeIndexPaths:]
3436
*/
3537
- (void)visibleNodeIndexPathsDidChangeWithScrollDirection:(ASScrollDirection)scrollDirection;
@@ -74,36 +76,70 @@
7476

7577
/**
7678
* Begin updates.
79+
*
80+
* @param rangeController Sender.
7781
*/
7882
- (void)rangeControllerBeginUpdates:(ASRangeController *)rangeController;
7983

8084
/**
8185
* End updates.
86+
*
87+
* @param rangeController Sender.
88+
*
89+
* @param completion Completion block.
8290
*/
8391
- (void)rangeControllerEndUpdates:(ASRangeController * )rangeController completion:(void (^)(BOOL))completion ;
8492

8593
/**
8694
* Fetch nodes at specific index paths.
95+
*
96+
* @param rangeController Sender.
97+
*
98+
* @param indexPaths Index paths.
8799
*/
88100
- (NSArray *)rangeController:(ASRangeController *)rangeController nodesAtIndexPaths:(NSArray *)indexPaths;
89101

90102
/**
91103
* Called for nodes insertion.
104+
*
105+
* @param rangeController Sender.
106+
*
107+
* @param indexPaths Index path of inserted nodes.
108+
*
109+
* @param animationOptions Animation options. See ASDataControllerAnimationOptions.
92110
*/
93111
- (void)rangeController:(ASRangeController *)rangeController didInsertNodesAtIndexPaths:(NSArray *)indexPaths withAnimationOptions:(ASDataControllerAnimationOptions)animationOptions;
94112

95113
/**
96114
* Called for nodes deletion.
115+
*
116+
* @param rangeController Sender.
117+
*
118+
* @param indexPaths Index path of deleted nodes.
119+
*
120+
* @param animationOptions Animation options. See ASDataControllerAnimationOptions.
97121
*/
98122
- (void)rangeController:(ASRangeController *)rangeController didDeleteNodesAtIndexPaths:(NSArray *)indexPaths withAnimationOptions:(ASDataControllerAnimationOptions)animationOptions;
99123

100124
/**
101125
* Called for section insertion.
126+
*
127+
* @param rangeController Sender.
128+
*
129+
* @param indexSet Index set of inserted sections.
130+
*
131+
* @param animationOptions Animation options. See ASDataControllerAnimationOptions.
102132
*/
103133
- (void)rangeController:(ASRangeController *)rangeController didInsertSectionsAtIndexSet:(NSIndexSet *)indexSet withAnimationOptions:(ASDataControllerAnimationOptions)animationOptions;
104134

105135
/**
106136
* Called for section deletion.
137+
*
138+
* @param rangeController Sender.
139+
*
140+
* @param indexSet Index set of deleted sections.
141+
*
142+
* @param animationOptions Animation options. See ASDataControllerAnimationOptions.
107143
*/
108144
- (void)rangeController:(ASRangeController *)rangeController didDeleteSectionsAtIndexSet:(NSIndexSet *)indexSet withAnimationOptions:(ASDataControllerAnimationOptions)animationOptions;
109145

0 commit comments

Comments
 (0)