setLocalCustomInt method

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

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

web 不支持

Implementation

Future<V2TimCallback> setLocalCustomInt({
  required String msgID,
  required int localCustomInt,
}) async {
  return TencentCloudChatSdkPlatform.instance.setLocalCustomInt(msgID: msgID, localCustomInt: localCustomInt);
}