설명 없음

RNFetchBlobRequest.h 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // RNFetchBlobRequest.h
  3. // RNFetchBlob
  4. //
  5. // Created by Artur Chrusciel on 15.01.18.
  6. // Copyright © 2018 wkh237.github.io. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "RNFetchBlobProgress.h"
  10. #if __has_include(<React/RCTAssert.h>)
  11. #import <React/RCTBridgeModule.h>
  12. #else
  13. #import "RCTBridgeModule.h"
  14. #endif
  15. #ifndef RNFetchBlobRequest_h
  16. #define RNFetchBlobRequest_h
  17. @interface RNFetchBlobRequest : NSObject <NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSessionDataDelegate>
  18. @property (nullable, nonatomic) NSString * taskId;
  19. @property (nonatomic) long long expectedBytes;
  20. @property (nonatomic) long long receivedBytes;
  21. @property (nonatomic) BOOL isServerPush;
  22. @property (nullable, nonatomic) NSMutableData * respData;
  23. @property (nullable, strong, nonatomic) RCTResponseSenderBlock callback;
  24. @property (nullable, nonatomic) RCTBridge * bridge;
  25. @property (nullable, nonatomic) NSDictionary * options;
  26. @property (nullable, nonatomic) NSError * error;
  27. @property (nullable, nonatomic) RNFetchBlobProgress *progressConfig;
  28. @property (nullable, nonatomic) RNFetchBlobProgress *uploadProgressConfig;
  29. @property (nullable, nonatomic, weak) NSURLSessionDataTask *task;
  30. - (void) sendRequest:(NSDictionary * _Nullable )options
  31. contentLength:(long)contentLength
  32. bridge:(RCTBridge * _Nullable)bridgeRef
  33. taskId:(NSString * _Nullable)taskId
  34. withRequest:(NSURLRequest * _Nullable)req
  35. taskOperationQueue:(NSOperationQueue * _Nonnull)operationQueue
  36. callback:(_Nullable RCTResponseSenderBlock) callback;
  37. @end
  38. #endif /* RNFetchBlobRequest_h */