| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // OSSManager.h
- // AliyunOSSSDK-iOS-Example
- //
- // Created by huaixu on 2018/10/23.
- // Copyright © 2018 aliyun. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <AliyunOSSiOS/AliyunOSSiOS.h>
- NS_ASSUME_NONNULL_BEGIN
- @protocol OSSManagerDelegate <NSObject>
- @optional
- - (void)stateChange:(NSDictionary *_Nullable)changeMsg;
- @end
- @interface OSSManager : NSObject
- @property (nonatomic,weak) id <OSSManagerDelegate> delegate;
- @property (nonatomic, strong) OSSClient *defaultClient;
- @property (nonatomic, strong) OSSClient *imageClient;
- @property (nonatomic, strong) NSDictionary *OSSInfo;
- @property (nonatomic,strong) NSMutableArray * _Nullable uploadTanck;
- + (instancetype)sharedManager;
- -(void)getOSSInfo;
- //普通上传
- - (void)asyncPutFile:(NSString *)objectKey localFilePath:(NSString *)filePath thrid:(NSString *)strtime;
- //断点续传
- - (void)asyncResumableUploadFile:(NSString *)objectKey localFilePath:(NSString *)filePath thrid:(NSString *)strtime;
- -(void)addUploadTanckobj:(OSSTask *)task thrid:(NSString *)thrid;
- -(BOOL)isuploadTanck:(NSString *)thrid;
- -(void)removeUploadTanckobj:(NSString *)thrid;
- -(void)stopUploadTanck:(NSString *)thrid;
- @end
- NS_ASSUME_NONNULL_END
|