NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
v2::V2NIMMessageListener结构体 参考

#include <v2_nim_def_callback.hpp>

Public 属性

nstd::function< void(nstd::vector< V2NIMMessage > messages)> onReceiveMessages
 收到一条新消息
 
nstd::function< void(nstd::vector< V2NIMP2PMessageReadReceipt > readReceipts)> onReceiveP2PMessageReadReceipts
 点对点已读回执
 
nstd::function< void(nstd::vector< V2NIMTeamMessageReadReceipt > readReceipts)> onReceiveTeamMessageReadReceipts
 群已读回执
 
nstd::function< void(nstd::vector< V2NIMMessageRevokeNotification > revokeNotifications)> onMessageRevokeNotifications
 消息撤回
 
nstd::function< void(V2NIMMessagePinNotification pinNotification)> onMessagePinNotification
 消息 pin 状态
 
nstd::function< void(V2NIMMessageQuickCommentNotification quickCommentNotification)> onMessageQuickCommentNotification
 消息快捷评论
 
nstd::function< void(nstd::vector< V2NIMMessageDeletedNotification > messageDeletedNotification)> onMessageDeletedNotifications
 消息被删除
 
nstd::function< void(nstd::vector< V2NIMClearHistoryNotification > clearHistoryNotification)> onClearHistoryNotifications
 清空会话历史消息
 
nstd::function< void(const V2NIMMessage &message)> onSendMessage
 本端发送消息状态回调
 
nstd::function< void(nstd::vector< V2NIMMessage > messages)> onReceiveMessagesModified
 更新消息在线同步通知
 

类成员变量说明

◆ onClearHistoryNotifications

nstd::function<void(nstd::vector<V2NIMClearHistoryNotification> clearHistoryNotification)> v2::V2NIMMessageListener::onClearHistoryNotifications

清空会话历史消息

◆ onMessageDeletedNotifications

nstd::function<void(nstd::vector<V2NIMMessageDeletedNotification> messageDeletedNotification)> v2::V2NIMMessageListener::onMessageDeletedNotifications

消息被删除

◆ onMessagePinNotification

nstd::function<void(V2NIMMessagePinNotification pinNotification)> v2::V2NIMMessageListener::onMessagePinNotification

消息 pin 状态

◆ onMessageQuickCommentNotification

nstd::function<void(V2NIMMessageQuickCommentNotification quickCommentNotification)> v2::V2NIMMessageListener::onMessageQuickCommentNotification

消息快捷评论

◆ onMessageRevokeNotifications

nstd::function<void(nstd::vector<V2NIMMessageRevokeNotification> revokeNotifications)> v2::V2NIMMessageListener::onMessageRevokeNotifications

消息撤回

◆ onReceiveMessages

nstd::function<void(nstd::vector<V2NIMMessage> messages)> v2::V2NIMMessageListener::onReceiveMessages

收到一条新消息

◆ onReceiveMessagesModified

nstd::function<void(nstd::vector<V2NIMMessage> messages)> v2::V2NIMMessageListener::onReceiveMessagesModified

更新消息在线同步通知

◆ onReceiveP2PMessageReadReceipts

nstd::function<void(nstd::vector<V2NIMP2PMessageReadReceipt> readReceipts)> v2::V2NIMMessageListener::onReceiveP2PMessageReadReceipts

点对点已读回执

◆ onReceiveTeamMessageReadReceipts

nstd::function<void(nstd::vector<V2NIMTeamMessageReadReceipt> readReceipts)> v2::V2NIMMessageListener::onReceiveTeamMessageReadReceipts

群已读回执

◆ onSendMessage

nstd::function<void(const V2NIMMessage& message)> v2::V2NIMMessageListener::onSendMessage

本端发送消息状态回调


该结构体的文档由以下文件生成: