downloadAttachment method

Future<NIMResult<void>> downloadAttachment(
  1. QChatDownloadAttachmentParam param
)

默认情况下(SDKOPtions#preloadAttach为true),SDK收到多媒体消息后,图片和视频会自动下载缩略图,音频会自动下载文件。 如果下载原图或者原视频等,可调用该接口下载附件

Implementation

Future<NIMResult<void>> downloadAttachment(
    QChatDownloadAttachmentParam param) {
  return _platform.downloadAttachment(param);
}