1234567891011121314151617181920212223242526272829 |
- //
- // RNAliyunOSS.h
- // NativeAddRN
- //
- // Created by 罗章 on 2018/5/8.
- //
-
- #import <React/RCTBridgeModule.h>
- #import <React/RCTEventEmitter.h>
- #import <AliyunOSSiOS/OSSService.h>
-
-
- @interface RNAliyunOSS : RCTEventEmitter <RCTBridgeModule>
-
- @property OSSClient *client;
- @property OSSClientConfiguration *clientConfiguration;
-
- @property bool hasListeners;
-
- -(NSString *)getDocumentDirectory;
- -(NSString *)getTemporaryDirectory;
- -(void) initConfiguration:(NSDictionary *)configuration;
- -(void) beginUploadingWithFilepath:(NSString *)filepath resultBlock:(void (^) (NSData *))callback;
-
- + (NSString*)generateTemporaryDirectoryFrom:(NSString*)sourcePath withData:(NSData*)data;
-
- @end
-
|