| 1234567891011121314151617181920212223242526272829303132 |
- //
- // 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
- @interface OSSManager : NSObject
- @property (nonatomic, strong) OSSClient *defaultClient;
- @property (nonatomic, strong) OSSClient *imageClient;
- @property (nonatomic, strong) NSDictionary *OSSInfo;
- + (instancetype)sharedManager;
- -(void)getOSSInfo;
- //普通上传
- - (void)asyncPutFile:(NSString *)objectKey localFilePath:(NSString *)filePath thrid:(NSString *)strtime progress:(void (^)(NSInteger,NSString *))progress success:(void (^)(id _Nullable,NSString *))success failure:(void (^)(NSError * _Nonnull,NSString *))failure;
- //断点续传
- - (void)asyncResumableUploadFile:(NSString *)objectKey localFilePath:(NSString *)filePath thrid:(NSString *)strtime progress:(void (^)(NSInteger,NSString *))prgress success:(void (^)(id _Nullable,NSString *))success failure:(void (^)(NSError * _Nonnull,NSString *))failure;
- @end
- NS_ASSUME_NONNULL_END
|