downloadMessage method
下载多媒体消息
message
消息对象
msgID
待废弃 请使用 message
参数
Implementation
Future<V2TimCallback> downloadMessage({
V2TimMessage? message,
String? msgID,
required int messageType,
required int imageType, // 图片类型,仅messageType为图片消息是有效
required bool isSnapshot, // 是否是视频封面,仅messageType为视频消息是有效
String? downloadPath, // 指定的下载路径
}) async {
if (kIsWeb) {
return await TencentCloudChatSdkPlatform.instance.downloadMessage(
msgID: msgID,
messageType: messageType,
imageType: imageType,
isSnapshot: isSnapshot,
);
}
return await TIMMessageManager.instance.downloadMessage(
message: message,
msgID: msgID,
imageType: imageType,
isSnapshot: isSnapshot,
downloadPath: downloadPath,
);
}