FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
AsyncDisplayKit/AsyncDisplayKit/ASCollectionNode.h at master · taontech/AsyncDisplayKit · GitHub
taontech
/
AsyncDisplayKit
Public
forked from
facebookarchive/AsyncDisplayKit
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
AsyncDisplayKit
/
AsyncDisplayKit
/
ASCollectionNode.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
103 lines (87 loc) · 3.44 KB
Breadcrumbs
AsyncDisplayKit
/
AsyncDisplayKit
/
ASCollectionNode.h
Copy path
File metadata and controls
103 lines (87 loc) · 3.44 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//
//
ASCollectionNode.h
//
AsyncDisplayKit
//
//
Created by Scott Goodson on 9/5/15.
//
Copyright (c) 2015 Facebook. All rights reserved.
//
#
import
<
AsyncDisplayKit/ASCollectionView.h
>
@protocol
ASCollectionViewLayoutFacilitatorProtocol;
NS_ASSUME_NONNULL_BEGIN
/*
*
* ASCollectionNode is a node based class that wraps an ASCollectionView. It can be used
* as a subnode of another node, and provide room for many (great) features and improvements later on.
*/
@interface
ASCollectionNode
:
ASDisplayNode
- (
instancetype
)
initWithCollectionViewLayout
:
(UICollectionViewLayout *)
layout
;
- (
instancetype
)
initWithFrame
:
(CGRect)
frame
collectionViewLayout
:
(UICollectionViewLayout *)
layout
;
@property
(
weak
,
nonatomic
)
id
<ASCollectionDelegate> delegate;
@property
(
weak
,
nonatomic
)
id
<ASCollectionDataSource> dataSource;
@property
(
nonatomic
,
readonly
) ASCollectionView *view;
/*
*
* Tuning parameters for a range type in full mode.
*
* @param rangeType The range type to get the tuning parameters for.
*
* @returns A tuning parameter value for the given range type in full mode.
*
* @see ASLayoutRangeMode
* @see ASLayoutRangeType
*/
- (ASRangeTuningParameters)
tuningParametersForRangeType
:
(ASLayoutRangeType)
rangeType
;
/*
*
* Set the tuning parameters for a range type in full mode.
*
* @param tuningParameters The tuning parameters to store for a range type.
* @param rangeType The range type to set the tuning parameters for.
*
* @see ASLayoutRangeMode
* @see ASLayoutRangeType
*/
- (
void
)
setTuningParameters
:
(ASRangeTuningParameters)
tuningParameters
forRangeType
:
(ASLayoutRangeType)
rangeType
;
/*
*
* Tuning parameters for a range type in the specified mode.
*
* @param rangeMode The range mode to get the running parameters for.
* @param rangeType The range type to get the tuning parameters for.
*
* @returns A tuning parameter value for the given range type in the given mode.
*
* @see ASLayoutRangeMode
* @see ASLayoutRangeType
*/
- (ASRangeTuningParameters)
tuningParametersForRangeMode
:
(ASLayoutRangeMode)
rangeMode
rangeType
:
(ASLayoutRangeType)
rangeType
;
/*
*
* Set the tuning parameters for a range type in the specified mode.
*
* @param tuningParameters The tuning parameters to store for a range type.
* @param rangeMode The range mode to set the running parameters for.
* @param rangeType The range type to set the tuning parameters for.
*
* @see ASLayoutRangeMode
* @see ASLayoutRangeType
*/
- (
void
)
setTuningParameters
:
(ASRangeTuningParameters)
tuningParameters
forRangeMode
:
(ASLayoutRangeMode)
rangeMode
rangeType
:
(ASLayoutRangeType)
rangeType
;
/*
*
* Reload everything from scratch, destroying the working range and all cached nodes.
*
* @param completion block to run on completion of asynchronous loading or nil. If supplied, the block is run on
* the main thread.
* @warning This method is substantially more expensive than UICollectionView's version.
*/
- (
void
)
reloadDataWithCompletion
:
(
void
(^)())
completion
;
/*
*
* Reload everything from scratch, destroying the working range and all cached nodes.
*
* @warning This method is substantially more expensive than UICollectionView's version.
*/
- (
void
)
reloadData
;
/*
*
* Reload everything from scratch entirely on the main thread, destroying the working range and all cached nodes.
*
* @warning This method is substantially more expensive than UICollectionView's version and will block the main thread
* while all the cells load.
*/
- (
void
)
reloadDataImmediately
;
@end
NS_ASSUME_NONNULL_END
Back
|
FazBrowse Home
|
New Git URL