UICollectionViewCell+RITLPhotosAsset.h 863 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // UICollectionViewCell+RITLPhotosAsset.h
  3. // RITLPhotoDemo
  4. //
  5. // Created by YueWen on 2018/5/9.
  6. // Copyright © 2018年 YueWen. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <Photos/Photos.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. extern NSNotificationName RITLHorBrowseTooBarChangedHiddenStateNotification;
  12. @interface UICollectionViewCell (RITLPhotosAsset)
  13. /// 标志位,避免重复赋值
  14. @property (nonatomic, copy) NSString *representedAssetIdentifier;
  15. /// 当前展示的资源
  16. @property (nonatomic, weak, nullable)PHAsset *currentAsset;
  17. /// 更新数据
  18. - (void)updateAssets:(PHAsset *)asset atIndexPath:(NSIndexPath *)indexPath imageManager:(PHCachingImageManager *)cacheManager;
  19. /// 播放数据,仅适用于live或者video
  20. - (void)playerAsset;
  21. - (void)stop;
  22. /// 用于普通图片,恢复缩放
  23. - (void)reset;
  24. @end
  25. NS_ASSUME_NONNULL_END