setLocalCustomInt method

  1. @override
Future<V2TimCallback> setLocalCustomInt({
  1. required String msgID,
  2. required int localCustomInt,
})
override

设置消息自定义数据,可以用来标记语音、视频消息是否已经播放(本地保存,不会发送到对端,程序卸载重装后失效)

web 不支持

Implementation

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