BVCurationsUICollectionViewDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | BVCurationsUICollectionView.h |
– curationsLoadImage:completion:
required method
Used to handle image loading to allow for custom caching.
- (void)curationsLoadImage:(nonnull NSString *)imageUrl completion:(nonnull BVCurationsLoadImageCompletion)completion
Parameters
imageUrl |
url that should be loaded |
---|---|
completion |
Must be called with loaded image and url |
Declared In
BVCurationsUICollectionView.h
– curationsImageIsCached:completion:
required method
Used to let SDK know if image is cached to opitimize display.
- (void)curationsImageIsCached:(nonnull NSString *)imageUrl completion:(nonnull BVCurationsIsImageCachedCompletion)completion
Parameters
imageUrl |
url to verify if cached |
---|---|
completion |
Must be called with BOOL isCached and url |
Declared In
BVCurationsUICollectionView.h
– curationsDidSelectFeedItem:
Called when a user taps on an item
- (void)curationsDidSelectFeedItem:(nonnull BVCurationsFeedItem *)feedItem
Parameters
feedItem |
the item the user tapped |
---|
Declared In
BVCurationsUICollectionView.h
– curationsFailedToLoadFeed:
Called if fetching the feed failed
- (void)curationsFailedToLoadFeed:(nonnull NSError *)error
Parameters
error |
the error that occured |
---|
Declared In
BVCurationsUICollectionView.h