根据文档ID获取文档下载地址列表。
API使用示例
iOS:
id<AIRBRoomChannelProtocol> room = [[AIRBRoomEngine sharedInstance] getRoomChannelWithRoomID:@"xxx"];
[room.document getDocumentURLs:@"要设置的文档ID" onSuccess:^(NSArray<NSString *> *documentURLs) {
//documentURLs就是返回的文档地址链接的数组
} onFailure:^(NSString *errorMessage) {
}];
Android:
documentService.getUrlList(docId, new Callback<List<String>>() {
@Override
public void onSuccess(List<String> data) {
Logger.i(TAG, "getUrlList onSuccess: " + docId);
}
@Override
public void onError(String errorMsg) {
Logger.i(TAG, "getUrlList onError: " + errorMsg);
}
});
Web:
docService.getUrlList(docId).then(urlList => {
console.log(urlList)
})
Windows:
暂无。
文档内容是否对您有帮助?