// // ASCollectionDataSourceInterop.h // AsyncDisplayKit // // Created by Adlai Holler on 1/20/17. // Copyright © 2017 Facebook. All rights reserved. // #import #import NS_ASSUME_NONNULL_BEGIN /** * Protocols that allow the data source/delegate extra hooks, * to facilitate interop e.g. with IGListKit. */ @protocol ASCollectionDataSourceInterop - (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath; - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath; @end @protocol ASCollectionDelegateInterop - (void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath; - (void)collectionView:(UICollectionView *)collectionView didEndDisplayingCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath; @end NS_ASSUME_NONNULL_END