YBIBDataMediator.h 597 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // YBIBDataMediator.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2019/6/6.
  6. // Copyright © 2019 波儿菜. All rights reserved.
  7. //
  8. #import "YBImageBrowser.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface YBIBDataMediator : NSObject
  11. - (instancetype)initWithBrowser:(YBImageBrowser *)browser;
  12. @property (nonatomic, assign) NSUInteger dataCacheCountLimit;
  13. - (NSInteger)numberOfCells;
  14. - (id<YBIBDataProtocol>)dataForCellAtIndex:(NSInteger)index;
  15. - (void)clear;
  16. @property (nonatomic, assign) NSUInteger preloadCount;
  17. - (void)preloadWithPage:(NSInteger)page;
  18. @end
  19. NS_ASSUME_NONNULL_END