Nenhuma descrição

RNFetchBlobProgress.h 789B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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;
  28. -(void)tick;
  29. @end
  30. #endif /* RNFetchBlobProgress_h */