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

#include <v2_nim_def_callback.hpp>

Public 属性

nstd::function< void(nstd::vector< V2NIMChatroomMessage > messages)> onReceiveMessages
 收到新消息
 
nstd::function< void(V2NIMChatroomMember member)> onChatroomMemberEnter
 聊天室成员进入
 
nstd::function< void(nstd::string accountId)> onChatroomMemberExit
 聊天室成员退出
 
nstd::function< void(V2NIMChatroomMemberRole previousRole, V2NIMChatroomMember member)> onChatroomMemberRoleUpdated
 成员角色更新
 
nstd::function< void(V2NIMChatroomMember member)> onChatroomMemberInfoUpdated
 成员信息更新
 
nstd::function< void(bool chatBanned)> onSelfChatBannedUpdated
 自己的禁言状态变更
 
nstd::function< void(bool tempChatBanned, uint64_t tempChatBannedDuration)> onSelfTempChatBannedUpdated
 自己的临时禁言状态变更
 
nstd::function< void(V2NIMChatroomInfo chatroomInfo)> onChatroomInfoUpdated
 聊天室信息更新
 
nstd::function< void(bool chatBanned)> onChatroomChatBannedUpdated
 聊天室禁言状态更新
 
nstd::function< void(nstd::string messageClientId, uint64_t messageTime)> onMessageRevokedNotification
 消息撤回回调
 
nstd::function< void(nstd::vector< nstd::string > tags)> onChatroomTagsUpdated
 更新角色标签
 
nstd::function< void(const V2NIMChatroomMessage &message)> onSendMessage
 本端发送消息状态回调
 

类成员变量说明

◆ onChatroomChatBannedUpdated

nstd::function<void(bool chatBanned)> v2::V2NIMChatroomListener::onChatroomChatBannedUpdated

聊天室禁言状态更新

◆ onChatroomInfoUpdated

nstd::function<void(V2NIMChatroomInfo chatroomInfo)> v2::V2NIMChatroomListener::onChatroomInfoUpdated

聊天室信息更新

◆ onChatroomMemberEnter

nstd::function<void(V2NIMChatroomMember member)> v2::V2NIMChatroomListener::onChatroomMemberEnter

聊天室成员进入

◆ onChatroomMemberExit

nstd::function<void(nstd::string accountId)> v2::V2NIMChatroomListener::onChatroomMemberExit

聊天室成员退出

◆ onChatroomMemberInfoUpdated

nstd::function<void(V2NIMChatroomMember member)> v2::V2NIMChatroomListener::onChatroomMemberInfoUpdated

成员信息更新

◆ onChatroomMemberRoleUpdated

nstd::function<void(V2NIMChatroomMemberRole previousRole, V2NIMChatroomMember member)> v2::V2NIMChatroomListener::onChatroomMemberRoleUpdated

成员角色更新

◆ onChatroomTagsUpdated

nstd::function<void(nstd::vector<nstd::string> tags)> v2::V2NIMChatroomListener::onChatroomTagsUpdated

更新角色标签

◆ onMessageRevokedNotification

nstd::function<void(nstd::string messageClientId, uint64_t messageTime)> v2::V2NIMChatroomListener::onMessageRevokedNotification

消息撤回回调

◆ onReceiveMessages

nstd::function<void(nstd::vector<V2NIMChatroomMessage> messages)> v2::V2NIMChatroomListener::onReceiveMessages

收到新消息

◆ onSelfChatBannedUpdated

nstd::function<void(bool chatBanned)> v2::V2NIMChatroomListener::onSelfChatBannedUpdated

自己的禁言状态变更

◆ onSelfTempChatBannedUpdated

nstd::function<void(bool tempChatBanned, uint64_t tempChatBannedDuration)> v2::V2NIMChatroomListener::onSelfTempChatBannedUpdated

自己的临时禁言状态变更

◆ onSendMessage

nstd::function<void(const V2NIMChatroomMessage& message)> v2::V2NIMChatroomListener::onSendMessage

本端发送消息状态回调


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