getMessageOnlineUrl method

  1. @override
Future<V2TimValueCallback<V2TimMessageOnlineUrl>> getMessageOnlineUrl({
  1. required String msgID,
})
override

下载多媒体消息到应用目录

Implementation

@override
Future<V2TimValueCallback<V2TimMessageOnlineUrl>> getMessageOnlineUrl({
  required String msgID,
}) async {
  Map<String, dynamic> param = {
    "msgID": msgID,
  };
  var resp = V2TimValueCallback<V2TimMessageOnlineUrl>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "getMessageOnlineUrl",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("getMessageOnlineUrl", param, resp.toLogString());
  return resp;
}