setMessageReceivedStatus static method
根据 messageId 设置接收到的消息状态。用于UI标记消息为已读,已下载等状态。
Implementation
static Future<void> setMessageReceivedStatus(int messageId, int receivedStatus, Function(int? code)? finished) async {
Map paramMap = {
"messageId": messageId,
"receivedStatus": receivedStatus,
};
int? result = await _channel.invokeMethod(RCMethodKey.SetMessageReceivedStatus, paramMap);
if (finished != null) {
finished(result);
}
}