setCloudCustomData method

  1. @override
Future<V2TimCallback> setCloudCustomData({
  1. required String data,
  2. required String msgID,
})
override

设置云端自定义数据(云端保存,会发送到对端,程序卸载重装后还能拉取到)

web 不支持

Implementation

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