◆ convertDocumentFormat:toType:onSuccess:onFailure:
- (void) convertDocumentFormat: |
|
(NSString *) |
sourceDocumentID |
toType: |
|
(AIRBDocumentTargetConversionFormat) |
targetType |
onSuccess: |
|
(void(^)(NSString *targetDocumentID, NSArray< NSString * > *documentURLs)) |
onSuccess |
onFailure: |
|
(void(^)(NSString *errorMessage)) |
onFailure |
|
|
| |
文档格式转换
- Parameters
-
sourceDocumentID | 要转换的源文档ID |
targetType | 要转的目标格式,目前仅支持三种,具体见AIRBDocumentTargetConversionFormat |
◆ downloadDocument:onSuccess:onFailure:
- (void) downloadDocument: |
|
(NSString *) |
documentID |
onSuccess: |
|
(void(^)(NSData *data, BOOL complete)) |
onSuccess |
onFailure: |
|
(void(^)(NSString *errorMessage)) |
onFailure |
|
|
| |
分段下载文档,onSuccess会不断被触发,每次都会返回一段内容,当下载完毕时complete为YES且同时data为nil
- Parameters
-
◆ getDocumentURLs:onSuccess:onFailure:
- (void) getDocumentURLs: |
|
(NSString *) |
documentID |
onSuccess: |
|
(void(^)(NSArray< NSString * > *documentURLs)) |
onSuccess |
onFailure: |
|
(void(^)(NSString *errorMessage)) |
onFailure |
|
|
| |
使用文档ID获取文档的存储地址链接
- Parameters
-
◆ uploadDocument:onSuccess:onFailure:
- (void) uploadDocument: |
|
(NSString *) |
documentURL |
onSuccess: |
|
(void(^)(NSString *documentID)) |
onSuccess |
onFailure: |
|
(void(^)(NSString *errorMessage)) |
onFailure |
|
|
| |
上传文档,会获得一个documentID作为这个文档的标记
- Parameters
-
documentURL | 文档地址(文档本地地址或者网络链接都可以) |
The documentation for this protocol was generated from the following file: