2525NS_ASSUME_NONNULL_BEGIN
2626
2727/* *
28- * FUICollectionViewDataSource provides a class that conforms to the
28+ * FUIFirestoreCollectionViewDataSource provides a class that conforms to the
2929 * UICollectionViewDataSource protocol which allows UICollectionViews to
30- * adopt FUICollectionViewDataSource in order to provide a UICollectionView
30+ * adopt FUIFirestoreCollectionViewDataSource in order to provide a UICollectionView
3131 * synchronized to a Firestore reference or query.
3232 */
33- @interface FUICollectionViewDataSource : NSObject <UICollectionViewDataSource>
33+ @interface FUIFirestoreCollectionViewDataSource : NSObject <UICollectionViewDataSource>
3434
3535/* *
3636 * The UICollectionView instance that operations (inserts, removals, moves,
@@ -71,15 +71,15 @@ NS_ASSUME_NONNULL_BEGIN
7171- (FIRDocumentSnapshot *)snapshotAtIndex : (NSInteger )index ;
7272
7373/* *
74- * Initialize an instance of FUICollectionViewDataSource that populates
74+ * Initialize an instance of FUIFirestoreCollectionViewDataSource that populates
7575 * UICollectionViewCells with FIRDataSnapshots.
7676 * @param collection A FUICollection that the data source uses to pull snapshots
7777 * from Cloud Firestore.
7878 * @param populateCell A closure used by the data source to create the cells that
7979 * are displayed in the collection view. This closure is retained by the data
8080 * source, so if you capture self in the closure and also claim ownership of the
8181 * data source, be sure to avoid retain cycles by capturing a weak reference to self.
82- * @return An instance of FUICollectionViewDataSource that populates
82+ * @return An instance of FUIFirestoreCollectionViewDataSource that populates
8383 * UICollectionViewCells with FIRDataSnapshots.
8484 */
8585- (instancetype )initWithCollection : (FUIBatchedArray *)collection
@@ -88,14 +88,14 @@ NS_ASSUME_NONNULL_BEGIN
8888 FIRDocumentSnapshot *object))populateCell NS_DESIGNATED_INITIALIZER;
8989
9090/* *
91- * Initialize an unsorted instance of FUICollectionViewDataSource that populates
91+ * Initialize an unsorted instance of FUIFirestoreCollectionViewDataSource that populates
9292 * UICollectionViewCells with FIRDataSnapshots.
9393 * @param query A Firestore query to bind the data source to.
9494 * @param populateCell A closure used by the data source to create the cells that
9595 * are displayed in the collection view. This closure is retained by the data
9696 * source, so if you capture self in the closure and also claim ownership of the
9797 * data source, be sure to avoid retain cycles by capturing a weak reference to self.
98- * @return An instance of FUICollectionViewDataSource that populates
98+ * @return An instance of FUIFirestoreCollectionViewDataSource that populates
9999 * UICollectionViewCells with FIRDataSnapshots.
100100 */
101101- (instancetype )initWithQuery : (FIRQuery *)query
@@ -119,7 +119,7 @@ NS_ASSUME_NONNULL_BEGIN
119119
120120@end
121121
122- @interface UICollectionView (FUICollectionViewDataSource )
122+ @interface UICollectionView (FUIFirestoreCollectionViewDataSource )
123123
124124/* *
125125 * Creates a data source, attaches it to the collection view, and returns it.
@@ -132,10 +132,11 @@ NS_ASSUME_NONNULL_BEGIN
132132 * @return The created data source. This value must be retained while the collection
133133 * view is in use.
134134 */
135- - (FUICollectionViewDataSource *)bindToQuery : (FIRQuery *)query
136- populateCell : (UICollectionViewCell *(^)(UICollectionView *collectionView,
137- NSIndexPath *indexPath,
138- FIRDocumentSnapshot *object))populateCell __attribute__((warn_unused_result));
135+ - (FUIFirestoreCollectionViewDataSource *)bindToQuery : (FIRQuery *)query
136+ populateCell : (UICollectionViewCell *(^)(UICollectionView *collectionView,
137+ NSIndexPath *indexPath,
138+ FIRDocumentSnapshot *object))populateCell
139+ __attribute__((warn_unused_result));
139140
140141@end
141142
0 commit comments