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