暫無描述

RNFetchBlobProgress.h 802B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // RNFetchBlobProgress.h
  3. // RNFetchBlob
  4. //
  5. // Created by Ben Hsieh on 2016/9/25.
  6. // Copyright © 2016年 wkh237.github.io. All rights reserved.
  7. //
  8. #ifndef RNFetchBlobProgress_h
  9. #define RNFetchBlobProgress_h
  10. #import <Foundation/Foundation.h>
  11. typedef NS_ENUM(NSUInteger, ProgressType) {
  12. Download,
  13. Upload,
  14. };
  15. @interface RNFetchBlobProgress : NSObject
  16. {
  17. NSNumber * count;
  18. NSNumber * interval;
  19. ProgressType type;
  20. BOOL enable;
  21. }
  22. @property (nonatomic) NSNumber * count;
  23. @property (nonatomic) NSNumber * interval;
  24. @property (nonatomic) NSInteger type;
  25. @property (nonatomic) BOOL enable;
  26. -(id)initWithType:(ProgressType)type interval:(NSNumber*)interval count:(NSNumber *)count;
  27. -(BOOL)shouldReport:(NSNumber *) nextProgress;
  28. @end
  29. #endif /* RNFetchBlobProgress_h */