OperationNodeMultiple.h 869 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // OperationNodeMultiple.h
  3. // sampleSDK
  4. //
  5. // Created by 王昭威 on 2023/1/17.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "OperationNodeProtocol.h"
  9. #import <UIKit/UIKit.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface OperationNodeMultiple : NSObject <OperationNodeProtocol>
  12. @property (nonatomic, weak) PCSBaseViewController* controller;
  13. // 允许的最大内存缓存数量, 默认10
  14. @property (nonatomic, assign) NSUInteger maxNumberOfImages;
  15. @property (nonatomic, assign, readonly) BOOL hasCache;
  16. @property (nonatomic, readonly) NSArray<UIImage*>* cachesInMemory;
  17. @property (nonatomic, readonly) NSArray<NSString*>* cachesOnDisk;
  18. @property (nonatomic, readonly, nullable) UIImage* lastImage;
  19. @property (nonatomic, readonly) NSUInteger numberOfCaches;
  20. //清除所有缓存数据
  21. - (void)cleanOnCompleted: (void(^)(void))block;
  22. @end
  23. NS_ASSUME_NONNULL_END