downloadMessage method
Implementation
@override
Future<V2TimCallback> downloadMessage({
required String msgID,
required int messageType,
required int imageType, // 图片类型,仅messageType为图片消息是有效
required bool isSnapshot, // 是否是视频封面,仅messageType为视频消息是有效
}) async {
Map<String, dynamic> param = {
"msgID": msgID,
"messageType": messageType,
"imageType": imageType,
"isSnapshot": isSnapshot,
};
var resp = V2TimCallback.fromJson(
formatJson(
await _channel.invokeMethod(
"downloadMessage",
buildMessageMangerParam(
param,
),
),
),
);
log("downloadMessage", param, resp.toLogString());
return resp;
}