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 {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setCloudCustomData",
        buildMessageMangerParam(
          {
            "msgID": msgID,
            "data": data,
          },
        ),
      ),
    ),
  );
}