aliyun-oss-react-native

RNAliyunOSS.h 685B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RNAliyunOSS.h
  3. // NativeAddRN
  4. //
  5. // Created by 罗章 on 2018/5/8.
  6. //
  7. #import <React/RCTBridgeModule.h>
  8. #import <React/RCTEventEmitter.h>
  9. #import <AliyunOSSiOS/OSSService.h>
  10. @interface RNAliyunOSS : RCTEventEmitter <RCTBridgeModule>
  11. @property OSSClient *client;
  12. @property OSSClientConfiguration *clientConfiguration;
  13. @property bool hasListeners;
  14. -(NSString *)getDocumentDirectory;
  15. -(NSString *)getTemporaryDirectory;
  16. -(void) initConfiguration:(NSDictionary *)configuration;
  17. -(void) beginUploadingWithFilepath:(NSString *)filepath resultBlock:(void (^) (NSData *))callback;
  18. + (NSString*)generateTemporaryDirectoryFrom:(NSString*)sourcePath withData:(NSData*)data;
  19. @end