DNImageFetchOperation.h 759 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // DNImageFetchOperation.h
  3. // DNImagePicker
  4. //
  5. // Created by dingxiao on 2018/10/9.
  6. // Copyright © 2018 Dennis. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. @class PHAsset;
  11. NS_ASSUME_NONNULL_BEGIN
  12. NS_CLASS_AVAILABLE_IOS(8.0) @interface DNImageFetchOperation : NSOperation
  13. @property (nonatomic, strong, nullable) PHAsset *asset;
  14. @property (assign, nonatomic, getter = isExecuting) BOOL executing;
  15. @property (assign, nonatomic, getter = isFinished) BOOL finished;
  16. - (instancetype)initWithAsset:(PHAsset *)asset;
  17. - (void)fetchImageWithTargetSize:(CGSize)size
  18. needHighQuality:(BOOL)isHighQuality
  19. imageResutHandler:(void (^)(UIImage * image))handler;
  20. @end
  21. NS_ASSUME_NONNULL_END