22 #import <UIKit/UIKit.h>
24 #import <Parse/PFConstants.h>
25 #import <ParseUI/ParseUIConstants.h>
27 NS_ASSUME_NONNULL_BEGIN
49 @interface PFQueryCollectionViewController : UICollectionViewController <UICollectionViewDelegateFlowLayout>
54 @property (nullable, nonatomic, copy) IBInspectable NSString *parseClassName;
59 @property (nonatomic, assign) IBInspectable BOOL loadingViewEnabled;
64 @property (nonatomic, assign) IBInspectable BOOL pullToRefreshEnabled;
69 @property (nonatomic, assign) IBInspectable BOOL paginationEnabled;
74 @property (nonatomic, assign) IBInspectable NSUInteger objectsPerPage;
79 @property (nonatomic, assign, getter=isLoading) BOOL loading;
93 - (instancetype)initWithClassName:(nullable NSString *)className;
103 - (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout
104 className:(nullable NSString *)className NS_DESIGNATED_INITIALIZER;
114 - (void)objectsWillLoad NS_REQUIRES_SUPER;
121 - (void)objectsDidLoad:(nullable NSError *)error NS_REQUIRES_SUPER;
130 @property (nonatomic, copy, readonly) NSArray<__kindof PFObject *> *objects;
142 - (nullable
PFObject *)objectAtIndexPath:(nullable NSIndexPath *)indexPath;
147 - (void)removeObjectAtIndexPath:(nullable NSIndexPath *)indexPath;
152 - (void)removeObjectsAtIndexPaths:(nullable NSArray<NSIndexPath *> *)indexes;
174 - (
BFTask<NSArray<__kindof
PFObject *> *> *)loadObjects:(NSInteger)page clear:(BOOL)clear;
179 - (void)loadNextPage;
195 - (
PFQuery *)queryForCollection;
213 cellForItemAtIndexPath:(NSIndexPath *)indexPath
224 - (nullable UICollectionReusableView *)collectionViewReusableViewForNextPageAction:(UICollectionView *)collectionView;
228 NS_ASSUME_NONNULL_END
Definition: PFObject+Subclass.h:14
Definition: PFCollectionViewCell.h:35
Definition: PFObject.h:32
Definition: PFImageView.h:32