Interface
2026-06-25
ZIMLogUploadedCallback
方法
onLogUploaded
onLogUploaded
typedef std::function<void(const ZIMError& errorInfo)> ZIMLogUploadedCallback上传日志结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMLoggedInCallback
方法
onLoggedIn
onLoggedIn
typedef std::function<void(const ZIMError& errorInfo)> ZIMLoggedInCallback登录结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
详情
开发者登录结果的回调。
- 业务场景:开发者可以通过该回调中的 [errorCode] 判断是否登录成功。
- 触发时机:当开发者调用 [login] 接口时,会触发该回调。
- 支持版本:1.2.0 及以上。
ZIMTokenRenewedCallback
方法
onTokenRenewed
onTokenRenewed
typedef std::function<void(const std::string& token, const ZIMError& errorInfo)> ZIMTokenRenewedCallback更新 Token 的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| token | const std::string& | 更新后的 Token。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMExperimentalAPICalledCallback
方法
onExperimentalAPICalled
onExperimentalAPICalled
typedef std::function<void(const std::string& result, const ZIMError& errorInfo)> ZIMExperimentalAPICalledCallback调用实验性 API 的结果返回回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| result | const std::string& | 调用实验性 API 返回的结果,格式为 JSON 字符串,具体可咨询 ZEGO 技术支持。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUserNameUpdatedCallback
方法
onUserNameUpdated
onUserNameUpdated
typedef std::function<void(const std::string& userName, const ZIMError& errorInfo)> ZIMUserNameUpdatedCallback更新 user name 的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| userName | const std::string& | 更新后的用户名称。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUserAvatarUrlUpdatedCallback
方法
onUserAvatarUrlUpdated
onUserAvatarUrlUpdated
typedef std::function<void(const std::string& userAvatarUrl, const ZIMError& errorInfo)> ZIMUserAvatarUrlUpdatedCallback更新 user avatar URL 的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| userAvatarUrl | const std::string& | 更新后的用户头像 URL。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUserExtendedDataUpdatedCallback
方法
onUserExtendedDataUpdated
onUserExtendedDataUpdated
typedef std::function<void(const std::string& extendedData, const ZIMError& errorInfo)> ZIMUserExtendedDataUpdatedCallback更新 user extended data 的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| extendedData | const std::string& | 更新后的用户扩展信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUserCustomStatusUpdatedCallback
方法
onUserCustomStatusUpdated
onUserCustomStatusUpdated
typedef std::function<void(const std::string& customStatus, const ZIMError& errorInfo)> ZIMUserCustomStatusUpdatedCallback更新用户自定义状态结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| customStatus | const std::string& | 更新后的用户自定义状态。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUserBadgeUpdatedCallback
方法
onUserBadgeUpdated
onUserBadgeUpdated
typedef std::function<void(const ZIMError& errorInfo)> ZIMUserBadgeUpdatedCallback用户角标更新结果
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUsersInfoQueriedCallback
方法
onUsersInfoQueried
onUsersInfoQueried
typedef std::function<void(const std::vector<ZIMUserFullInfo>& userList, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMUsersInfoQueriedCallback查询 userInfo 的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| userList | const std::vector<ZIMUserFullInfo>& | 查询到的用户信息列表。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 查询失败的用户 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUserOfflinePushRuleUpdatedCallback
方法
onUserOfflinePushRuleUpdated
onUserOfflinePushRuleUpdated
typedef std::function<void(const ZIMUserOfflinePushRule& offlinePushRule, const ZIMError& errorInfo)> ZIMUserOfflinePushRuleUpdatedCallback更新用户离线推送规则结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| offlinePushRule | const ZIMUserOfflinePushRule& | 更新后的用户离线推送规则。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMSelfUserInfoQueriedCallback
方法
onSelfUserInfoQueried
onSelfUserInfoQueried
typedef std::function<void(const ZIMSelfUserInfo& selfUserInfo, const ZIMError& errorInfo)> ZIMSelfUserInfoQueriedCallback查询当前用户信息和规则结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| selfUserInfo | const ZIMSelfUserInfo& | 当前用户信息和规则。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUsersStatusQueriedCallback
方法
onUsersStatusQueried
onUsersStatusQueried
typedef std::function<void(const std::vector<ZIMUserStatus>& userStatusList, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMUsersStatusQueriedCallback批量查询用户在线状态接口 queryUsersStatus 的结果回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| userStatusList | const std::vector<ZIMUserStatus>& | 查询到的用户状态列表。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 查询失败的用户 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUsersStatusSubscribedCallback
方法
onUsersStatusSubscribed
onUsersStatusSubscribed
typedef std::function<void(const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMUsersStatusSubscribedCallback批量订阅接口的操作结果回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 订阅失败的用户 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMUsersStatusUnsubscribedCallback
方法
onUsersStatusUnsubscribed
onUsersStatusUnsubscribed
typedef std::function<void(const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMUsersStatusUnsubscribedCallback批量取消订阅接口的操作回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 取消订阅失败的用户 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMSubscribedUserStatusListQueriedCallback
方法
onSubscribedUserStatusListQueried
onSubscribedUserStatusListQueried
typedef std::function<void(const std::vector<ZIMUserStatusSubscription>& userStatusSubscriptionList, const ZIMError& errorInfo)> ZIMSubscribedUserStatusListQueriedCallback查询当前用户订阅列表操作的结果回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| userStatusSubscriptionList | const std::vector<ZIMUserStatusSubscription>& | 当前用户的状态订阅列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationQueriedCallback
方法
onConversationQueried
onConversationQueried
typedef std::function<void(ZIMConversation conversation, const ZIMError& errorInfo)> ZIMConversationQueriedCallback查询指定会话结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversation | ZIMConversation | 查询到的会话对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationListQueriedCallback
方法
onConversationListQueried
onConversationListQueried
typedef std::function<void(const std::vector<ZIMConversation>& conversationList, const ZIMError& errorInfo)> ZIMConversationListQueriedCallback查询会话列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationList | const std::vector<ZIMConversation>& | 查询到的会话列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationTotalUnreadMessageCountQueriedCallback
方法
onConversationTotalUnreadMessageCountQueried
onConversationTotalUnreadMessageCountQueried
typedef std::function<void(unsigned int unreadMessageCount, const ZIMError& errorInfo)> ZIMConversationTotalUnreadMessageCountQueriedCallback查询会话未读消息总数结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| unreadMessageCount | unsigned int | 当前会话未读消息总数。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationDeletedCallback
方法
onConversationDeleted
onConversationDeleted
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const ZIMError& errorInfo)> ZIMConversationDeletedCallback删除会话结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 被删除的会话 ID。 |
| conversationType | ZIMConversationType | 被删除的会话类型。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationsAllDeletedCallback
方法
onConversationsAllDeleted
onConversationsAllDeleted
typedef std::function<void(const ZIMError& errorInfo)> ZIMConversationsAllDeletedCallback删除所有会话结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationUnreadMessageCountClearedCallback
方法
onConversationUnreadMessageCountCleared
onConversationUnreadMessageCountCleared
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const ZIMError& errorInfo)> ZIMConversationUnreadMessageCountClearedCallback清除会话未读消息数结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 已清除未读消息数的会话 ID。 |
| conversationType | ZIMConversationType | 已清除未读消息数的会话类型。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationTotalUnreadMessageCountClearedCallback
方法
onConversationTotalUnreadMessageCountCleared
onConversationTotalUnreadMessageCountCleared
typedef std::function<void(const ZIMError& errorInfo)> ZIMConversationTotalUnreadMessageCountClearedCallback清除全部会话未读消息数结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationNotificationStatusSetCallback
方法
onConversationNotificationStatusSet
onConversationNotificationStatusSet
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const ZIMError& errorInfo)> ZIMConversationNotificationStatusSetCallback设置会话消息通知状态结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 设置通知状态的会话 ID。 |
| conversationType | ZIMConversationType | 设置通知状态的会话类型。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationMessageReceiptReadSentCallback
方法
onConversationMessageReceiptReadSent
onConversationMessageReceiptReadSent
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const ZIMError& errorInfo)> ZIMConversationMessageReceiptReadSentCallback发送会话消息已读回执结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 发送已读回执的会话 ID。 |
| conversationType | ZIMConversationType | 发送已读回执的会话类型。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationPinnedStateUpdatedCallback
方法
onConversationPinnedStateUpdated
onConversationPinnedStateUpdated
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const ZIMError& errorInfo)> ZIMConversationPinnedStateUpdatedCallback更新会话置顶状态结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 更新置顶状态的会话 ID。 |
| conversationType | ZIMConversationType | 更新置顶状态的会话类型。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationPinnedListQueriedCallback
方法
onConversationPinnedListQueried
onConversationPinnedListQueried
typedef std::function<void(const std::vector<ZIMConversation>& conversationList, const ZIMError& errorInfo)> ZIMConversationPinnedListQueriedCallback查询置顶会话列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationList | const std::vector<ZIMConversation>& | 查询到的置顶会话列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationDraftSetCallback
方法
onConversationDraftSet
onConversationDraftSet
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const ZIMError& errorInfo)> ZIMConversationDraftSetCallback设置会话草稿结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 设置草稿的会话 ID。 |
| conversationType | ZIMConversationType | 设置草稿的会话类型。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationMarkSetCallback
方法
onConversationMarkSet
onConversationMarkSet
typedef std::function<void(const std::vector<ZIMConversationBaseInfo>& failedConversationInfos, const ZIMError& errorInfo)> ZIMConversationMarkSetCallback设置会话标记结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| failedConversationInfos | const std::vector<ZIMConversationBaseInfo>& | 设置标记失败的会话信息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationsSearchedCallback
方法
onConversationsSearched
onConversationsSearched
typedef std::function<void(const std::vector<ZIMConversationSearchInfo>& conversationSearchInfoList, unsigned int nextFlag, const ZIMError& errorInfo)> ZIMConversationsSearchedCallback基于本地消息搜索本地会话结果的返回。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationSearchInfoList | const std::vector<ZIMConversationSearchInfo>& | 搜索到的会话列表。 |
| nextFlag | unsigned int | 查询下一页的分页标志。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageSentCallback
方法
onMessageSent
onMessageSent
typedef std::function<void(ZIMMessage message, const ZIMError& errorInfo)> ZIMMessageSentCallback发送消息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | ZIMMessage | 消息对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageQueriedCallback
方法
onMessageQueried
onMessageQueried
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const std::vector<ZIMMessage>& messageList, const ZIMError& errorInfo)> ZIMMessageQueriedCallback开发者通过该回调获取查询到的消息列表,可以做历史消息显示。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 会话 ID。 |
| conversationType | ZIMConversationType | 会话类型。 |
| messageList | const std::vector<ZIMMessage>& | 消息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageDeletedCallback
方法
onMessageDeleted
onMessageDeleted
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const ZIMError& errorInfo)> ZIMMessageDeletedCallback删除消息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 会话 ID。 |
| conversationType | ZIMConversationType | 会话类型。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMConversationMessagesAllDeletedCallback
方法
onConversationMessagesAllDeleted
onConversationMessagesAllDeleted
typedef std::function<void(const ZIMError& errorInfo)> ZIMConversationMessagesAllDeletedCallback删除指定会话全部消息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageRevokedCallback
方法
onMessageRevoked
onMessageRevoked
typedef std::function<void(ZIMMessage message, const ZIMError& errorInfo)> ZIMMessageRevokedCallback撤回消息的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | ZIMMessage | 消息对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageInsertedCallback
方法
onMessageInserted
onMessageInserted
typedef std::function<void(ZIMMessage message, const ZIMError& errorInfo)> ZIMMessageInsertedCallback插入本地消息的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | ZIMMessage | 消息对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageLocalExtendedDataUpdatedCallback
方法
onMessageLocalExtendedDataUpdated
onMessageLocalExtendedDataUpdated
typedef std::function<void(ZIMMessage message, const ZIMError& errorInfo)> ZIMMessageLocalExtendedDataUpdatedCallback更新消息本地扩展字段结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | ZIMMessage | 消息对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageReceiptsReadSentCallback
方法
onMessageReceiptsReadSent
onMessageReceiptsReadSent
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const std::vector<long long>& errorMessageIDs, const ZIMError& errorInfo)> ZIMMessageReceiptsReadSentCallback发送消息已读回执结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 会话 ID。 |
| conversationType | ZIMConversationType | 会话类型。 |
| errorMessageIDs | const std::vector<long long>& | 错误消息 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageReceiptsInfoQueriedCallback
方法
onMessageReceiptsInfoQueried
onMessageReceiptsInfoQueried
typedef std::function<void(const std::vector<ZIMMessageReceiptInfo>& infos, const std::vector<long long>& errorMessageIDs, const ZIMError& errorInfo)> ZIMMessageReceiptsInfoQueriedCallback查询消息已读回执信息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| infos | const std::vector<ZIMMessageReceiptInfo>& | 消息回执信息列表。 |
| errorMessageIDs | const std::vector<long long>& | 错误消息 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMediaDownloadedCallback
方法
onMediaDownloaded
onMediaDownloaded
typedef std::function<void(ZIMMessage message, const ZIMError& errorInfo)> ZIMMediaDownloadedCallback媒体消息下载完成结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | ZIMMessage | 消息对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMediaDownloadingProgress
方法
onMediaDownloadingProgress
onMediaDownloadingProgress
typedef std::function<void(ZIMMessage message, unsigned long long currentFileSize, unsigned long long totalFileSize)> ZIMMediaDownloadingProgress媒体文件下载进度的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | ZIMMessage | 消息对象。 |
| currentFileSize | unsigned long long | 当前文件大小。 |
| totalFileSize | unsigned long long | 总文件大小。 |
ZIMMessagesSearchedCallback
方法
onMessagesSearched
onMessagesSearched
typedef std::function<void(const std::string& conversationID, ZIMConversationType conversationType, const std::vector<ZIMMessage>& messageList, ZIMMessage nextMessage, const ZIMError& errorInfo)> ZIMMessagesSearchedCallback搜索本地消息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| conversationID | const std::string& | 会话 ID。 |
| conversationType | ZIMConversationType | 会话类型。 |
| messageList | const std::vector<ZIMMessage>& | 消息列表。 |
| nextMessage | ZIMMessage | 下一个消息对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessagesGlobalSearchedCallback
方法
onMessagesGlobalSearched
onMessagesGlobalSearched
typedef std::function<void(const std::vector<ZIMMessage>& messageList, ZIMMessage nextMessage, const ZIMError& errorInfo)> ZIMMessagesGlobalSearchedCallback全局搜索本地消息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| messageList | const std::vector<ZIMMessage>& | 消息列表。 |
| nextMessage | ZIMMessage | 下一个消息对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageReactionAddedCallback
方法
onMessageReactionAdded
onMessageReactionAdded
typedef std::function<void(const ZIMMessageReaction& reaction, const ZIMError& errorInfo)> ZIMMessageReactionAddedCallback添加消息表情回应结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| reaction | const ZIMMessageReaction& | 消息反应对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageReactionDeletedCallback
方法
onMessageReactionDeleted
onMessageReactionDeleted
typedef std::function<void(const ZIMMessageReaction& reaction, const ZIMError& errorInfo)> ZIMMessageReactionDeletedCallback删除消息表情回应结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| reaction | const ZIMMessageReaction& | 消息反应对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageReactionsAllDeletedCallback
方法
onMessageReactionsAllDeleted
onMessageReactionsAllDeleted
typedef std::function<void(const ZIMError& errorInfo)> ZIMMessageReactionsAllDeletedCallback删除全部消息表情回应结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageReactionUserListQueriedCallback
方法
onMessageReactionUserListQueried
onMessageReactionUserListQueried
typedef std::function<void(ZIMMessage message, const std::vector<ZIMMessageReactionUserFullInfo>& userInfoList, const std::string& reactionType, long long nextFlag, unsigned int totalCount, const ZIMError& errorInfo)> ZIMMessageReactionUserListQueriedCallback查询消息表情回应用户列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | ZIMMessage | 消息对象。 |
| userInfoList | const std::vector<ZIMMessageReactionUserFullInfo>& | 用户表态详情信息列表 |
| reactionType | const std::string& | 消息反应类型。 |
| nextFlag | long long | 列表查询锚点,用于查询下一个分页。当前值返回 0 的情况下代表列表已全部拉取完毕。 |
| totalCount | unsigned int | 用户总数。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCombineMessageDetailQueriedCallback
方法
onCombineMessageDetailQueried
onCombineMessageDetailQueried
typedef std::function<void(ZIMCombineMessage message, const ZIMError& errorInfo)> ZIMCombineMessageDetailQueriedCallback查询合并消息详情结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | ZIMCombineMessage | 组合消息对象。该对象中的 messageList 已携带合并消息的子消息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageRepliedListQueriedCallback
方法
onMessageRepliedListQueried
onMessageRepliedListQueried
typedef std::function<void(const std::vector<ZIMMessage>& messageList, long long nextFlag, const ZIMMessageRootRepliedInfo& rootRepliedInfo, const ZIMError& errorInfo)> ZIMMessageRepliedListQueriedCallback查询回复消息列表的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| messageList | const std::vector<ZIMMessage>& | 消息列表。 |
| nextFlag | long long | 列表查询锚点,用于查询下一个分页。当前值返回 0 的情况下代表列表已全部拉取完毕。 |
| rootRepliedInfo | const ZIMMessageRootRepliedInfo& | 根消息回复信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageEditedCallback
方法
onMessageEdited
onMessageEdited
typedef std::function<void(ZIMMessage message, const ZIMError& errorInfo)> ZIMMessageEditedCallback编辑消息的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | ZIMMessage | 消息对象。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMSendingMessageCancelledCallback
方法
onSendingMessageCancelled
onSendingMessageCancelled
typedef std::function<void(const ZIMError& errorInfo)> ZIMSendingMessageCancelledCallback取消发送中消息的操作结果回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessagePinnedCallback
方法
onMessagePinned
onMessagePinned
typedef std::function<void(const ZIMError& errorInfo)> ZIMMessagePinnedCallback置顶或取消置顶消息的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMPinnedMessageListQueriedCallback
方法
onPinnedMessageListQueried
onPinnedMessageListQueried
typedef std::function<void(const std::vector<ZIMMessage>& messageList, const ZIMError& errorInfo)> ZIMPinnedMessageListQueriedCallback开发者通过该回调获取查询到的置顶消息列表,可以做置顶消息显示。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| messageList | const std::vector<ZIMMessage>& | 置顶消息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMMessageExportingProgress
方法
onMessageExportingProgress
onMessageExportingProgress
typedef std::function<void(unsigned long long exportedMessageCount, unsigned long long totalMessageCount)> ZIMMessageExportingProgress消息导出进度的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| exportedMessageCount | unsigned long long | 已导出的消息数量。 |
| totalMessageCount | unsigned long long | 总消息数量。 |
ZIMFileCacheQueriedCallback
方法
onFileCacheQueried
onFileCacheQueried
typedef std::function<void(const ZIMFileCacheInfo& fileCacheInfo, const ZIMError& errorInfo)> ZIMFileCacheQueriedCallback查询本地文件缓存信息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| fileCacheInfo | const ZIMFileCacheInfo& | 文件缓存信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFileCacheClearedCallback
方法
onFileCacheCleared
onFileCacheCleared
typedef std::function<void(const ZIMError& errorInfo)> ZIMFileCacheClearedCallback清理本地文件缓存结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomCreatedCallback
方法
onRoomCreated
onRoomCreated
typedef std::function<void(const ZIMRoomFullInfo& roomInfo, const ZIMError& errorInfo)> ZIMRoomCreatedCallback创建房间的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomInfo | const ZIMRoomFullInfo& | 房间信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomJoinedCallback
方法
onRoomJoined
onRoomJoined
typedef std::function<void(const ZIMRoomFullInfo& roomInfo, const ZIMError& errorInfo)> ZIMRoomJoinedCallback加入房间的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomInfo | const ZIMRoomFullInfo& | 房间信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomEnteredCallback
方法
onRoomEntered
onRoomEntered
typedef std::function<void(const ZIMRoomFullInfo& roomInfo, const ZIMError& errorInfo)> ZIMRoomEnteredCallback进入房间的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomInfo | const ZIMRoomFullInfo& | 房间信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomSwitchedCallback
方法
onRoomSwitched
onRoomSwitched
typedef std::function<void(const ZIMRoomFullInfo& roomInfo, const ZIMError& errorInfo)> ZIMRoomSwitchedCallback切换房间的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomInfo | const ZIMRoomFullInfo& | 房间信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomLeftCallback
方法
onRoomLeft
onRoomLeft
typedef std::function<void(const std::string& roomID, const ZIMError& errorInfo)> ZIMRoomLeftCallback离开房间的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomAllLeftCallback
方法
onRoomAllLeft
onRoomAllLeft
typedef std::function<void(const std::vector<std::string>& roomIDs, const ZIMError& errorInfo)> ZIMRoomAllLeftCallback离开所有房间的结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomIDs | const std::vector<std::string>& | 房间 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomMemberQueriedCallback
方法
onRoomMemberQueried
onRoomMemberQueried
typedef std::function<void(const std::string& roomID, const std::vector<ZIMUserInfo>& memberList, const std::string& nextFlag, const ZIMError& errorInfo)> ZIMRoomMemberQueriedCallback查询房间成员列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| memberList | const std::vector<ZIMUserInfo>& | 房间成员列表。 |
| nextFlag | const std::string& | 用于查询下一页。当前值返回空字符串,表示已拉取完。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomMembersQueriedCallback
方法
onRoomMembersQueried
onRoomMembersQueried
typedef std::function<void(const std::string& roomID, const std::vector<ZIMRoomMemberInfo>& memberList, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMRoomMembersQueriedCallback查询指定房间成员信息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| memberList | const std::vector<ZIMRoomMemberInfo>& | 房间成员列表。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 错误成员列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomOnlineMemberCountQueriedCallback
方法
onRoomOnlineMemberCountQueried
onRoomOnlineMemberCountQueried
typedef std::function<void(const std::string& roomID, unsigned int count, const ZIMError& errorInfo)> ZIMRoomOnlineMemberCountQueriedCallback查询房间在线人数结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| count | unsigned int | 在线成员数量。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomAttributesOperatedCallback
方法
onRoomAttributesOperated
onRoomAttributesOperated
typedef std::function<void(const std::string& roomID, const std::vector<std::string>& errorKeys, const ZIMError& errorInfo)> ZIMRoomAttributesOperatedCallback操作房间属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| errorKeys | const std::vector<std::string>& | 错误键列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomAttributesBatchOperatedCallback
方法
onRoomAttributesBatchOperated
onRoomAttributesBatchOperated
typedef std::function<void(const std::string& roomID, const ZIMError& errorInfo)> ZIMRoomAttributesBatchOperatedCallback批量操作房间属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomAttributesQueriedCallback
方法
onRoomAttributesQueried
onRoomAttributesQueried
typedef std::function<void(const std::string& roomID, const std::unordered_map<std::string, std::string>& roomAttributes, const ZIMError& errorInfo)> ZIMRoomAttributesQueriedCallback查询房间属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| roomAttributes | const std::unordered_map<std::string, std::string>& | 房间属性。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomMembersAttributesOperatedCallback
方法
onRoomMembersAttributesOperated
onRoomMembersAttributesOperated
typedef std::function<void(const std::string& roomID, const std::vector<ZIMRoomMemberAttributesOperatedInfo>& infos, const std::vector<std::string>& errorUserList, const ZIMError& errorInfo)> ZIMRoomMembersAttributesOperatedCallback设置房间成员属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| infos | const std::vector<ZIMRoomMemberAttributesOperatedInfo>& | 房间成员属性操作信息列表。 |
| errorUserList | const std::vector<std::string>& | 错误成员列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomMembersAttributesQueriedCallback
方法
onRoomMembersAttributesQueried
onRoomMembersAttributesQueried
typedef std::function<void(const std::string& roomID, const std::vector<ZIMRoomMemberAttributesInfo>& infos, const ZIMError& errorInfo)> ZIMRoomMembersAttributesQueriedCallback批量查询房间成员属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| infos | const std::vector<ZIMRoomMemberAttributesInfo>& | 房间成员属性信息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMRoomMemberAttributesListQueriedCallback
方法
onRoomMemberAttributesListQueried
onRoomMemberAttributesListQueried
typedef std::function<void(const std::string& roomID, const std::vector<ZIMRoomMemberAttributesInfo>& infos, const std::string& nextFlag, const ZIMError& errorInfo)> ZIMRoomMemberAttributesListQueriedCallback房间内用户属性列表查询结果的返回。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| roomID | const std::string& | 房间 ID。 |
| infos | const std::vector<ZIMRoomMemberAttributesInfo>& | 房间成员属性信息列表。 |
| nextFlag | const std::string& | 用于查询下一页的标志。当前值返回 0,表示已拉取完列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupCreatedCallback
方法
onGroupCreated
onGroupCreated
typedef std::function<void(const ZIMGroupFullInfo& groupInfo, const std::vector<ZIMGroupMemberInfo>& userList, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMGroupCreatedCallback创建群组结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupInfo | const ZIMGroupFullInfo& | 群组信息。 |
| userList | const std::vector<ZIMGroupMemberInfo>& | 群成员信息列表。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 错误成员列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupDismissedCallback
方法
onGroupDismissed
onGroupDismissed
typedef std::function<void(const std::string& groupID, const ZIMError& errorInfo)> ZIMGroupDismissedCallback解散群组结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupJoinedCallback
方法
onGroupJoined
onGroupJoined
typedef std::function<void(const ZIMGroupFullInfo& groupInfo, const ZIMError& errorInfo)> ZIMGroupJoinedCallback加入群组结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupInfo | const ZIMGroupFullInfo& | 群组信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupLeftCallback
方法
onGroupLeft
onGroupLeft
typedef std::function<void(const std::string& groupID, const ZIMError& errorInfo)> ZIMGroupLeftCallback退出群组结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupUsersInvitedCallback
方法
onGroupUsersInvited
onGroupUsersInvited
typedef std::function<void(const std::string& groupID, const std::vector<ZIMGroupMemberInfo>& userList, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMGroupUsersInvitedCallback用户被邀请进群的结果的返回。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| userList | const std::vector<ZIMGroupMemberInfo>& | 群成员信息列表。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 错误成员列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMemberKickedCallback
方法
onGroupMemberKicked
onGroupMemberKicked
typedef std::function<void(const std::string& groupID, const std::vector<std::string>& kickedUserIDList, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMGroupMemberKickedCallback踢出群成员的结果的返回。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| kickedUserIDList | const std::vector<std::string>& | 被踢出的用户 ID 列表。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 错误成员列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupOwnerTransferredCallback
方法
onGroupOwnerTransferred
onGroupOwnerTransferred
typedef std::function<void(const std::string& groupID, const std::string& toUserID, const ZIMError& errorInfo)> ZIMGroupOwnerTransferredCallback群主转让的结果的返回。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| toUserID | const std::string& | 新群主用户 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupNameUpdatedCallback
方法
onGroupNameUpdated
onGroupNameUpdated
typedef std::function<void(const std::string& groupID, const std::string& groupName, const ZIMError& errorInfo)> ZIMGroupNameUpdatedCallback更新群组名称结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| groupName | const std::string& | 群组名称。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupAvatarUrlUpdatedCallback
方法
onGroupAvatarUrlUpdated
onGroupAvatarUrlUpdated
typedef std::function<void(const std::string& groupID, const std::string& groupAvatarUrl, const ZIMError& errorInfo)> ZIMGroupAvatarUrlUpdatedCallback更新群组头像 URL 结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| groupAvatarUrl | const std::string& | 群组头像 URL。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupNoticeUpdatedCallback
方法
onGroupNoticeUpdated
onGroupNoticeUpdated
typedef std::function<void(const std::string& groupID, const std::string& groupNotice, const ZIMError& errorInfo)> ZIMGroupNoticeUpdatedCallback更新群组公告结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| groupNotice | const std::string& | 群组公告。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupAliasUpdatedCallback
方法
onGroupAliasUpdated
onGroupAliasUpdated
typedef std::function<void(const std::string& groupID, const std::string& groupAlias, const ZIMError& errorInfo)> ZIMGroupAliasUpdatedCallback更新群组别名结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| groupAlias | const std::string& | 群组别名。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupInfoQueriedCallback
方法
onGroupInfoQueried
onGroupInfoQueried
typedef std::function<void(const ZIMGroupFullInfo& groupInfo, const ZIMError& errorInfo)> ZIMGroupInfoQueriedCallback查询群组信息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupInfo | const ZIMGroupFullInfo& | 群组信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupAttributesOperatedCallback
方法
onGroupAttributesOperated
onGroupAttributesOperated
typedef std::function<void(const std::string& groupID, const std::vector<std::string>& errorKeys, const ZIMError& errorInfo)> ZIMGroupAttributesOperatedCallback操作群组属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| errorKeys | const std::vector<std::string>& | 操作失败的属性。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupAttributesQueriedCallback
方法
onGroupAttributesQueried
onGroupAttributesQueried
typedef std::function<void(const std::string& groupID, const std::unordered_map<std::string, std::string>& groupAttributes, const ZIMError& errorInfo)> ZIMGroupAttributesQueriedCallback查询群组属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| groupAttributes | const std::unordered_map<std::string, std::string>& | 群组属性。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMemberRoleUpdatedCallback
方法
onGroupMemberRoleUpdated
onGroupMemberRoleUpdated
typedef std::function<void(const std::string& groupID, const std::string& forUserID, ZIMGroupMemberRole role, const ZIMError& errorInfo)> ZIMGroupMemberRoleUpdatedCallback更新群成员角色结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| forUserID | const std::string& | 被操作的用户 ID。 |
| role | ZIMGroupMemberRole | 用户角色。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMemberNicknameUpdatedCallback
方法
onGroupMemberNicknameUpdated
onGroupMemberNicknameUpdated
typedef std::function<void(const std::string& groupID, const std::string& forUserID, const std::string& nickname, const ZIMError& errorInfo)> ZIMGroupMemberNicknameUpdatedCallback群成员昵称更新的结果的返回。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| forUserID | const std::string& | 被操作的用户 ID。 |
| nickname | const std::string& | 用户昵称。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMemberInfoQueriedCallback
方法
onGroupMemberInfoQueried
onGroupMemberInfoQueried
typedef std::function<void(const std::string& groupID, const ZIMGroupMemberInfo& userInfo, const ZIMError& errorInfo)> ZIMGroupMemberInfoQueriedCallback查询群成员信息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| userInfo | const ZIMGroupMemberInfo& | 群成员用户信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupListQueriedCallback
方法
onGroupListQueried
onGroupListQueried
ZIMGroupMemberListQueriedCallback
方法
onGroupMemberListQueried
onGroupMemberListQueried
typedef std::function<void(const std::string& groupID, const std::vector<ZIMGroupMemberInfo>& userList, unsigned int nextFlag, const ZIMError& errorInfo)> ZIMGroupMemberListQueriedCallback查询群成员列表的结果的返回。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| userList | const std::vector<ZIMGroupMemberInfo>& | 群成员列表。 |
| nextFlag | unsigned int | 用于查询下一页。当前值返回 0,表示列表已拉取完毕。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMemberCountQueriedCallback
方法
onGroupMemberCountQueried
onGroupMemberCountQueried
typedef std::function<void(const std::string& groupID, unsigned int count, const ZIMError& errorInfo)> ZIMGroupMemberCountQueriedCallback查询群成员数量的结果的返回。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| count | unsigned int | 群成员数量。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMessageReceiptMemberListQueriedCallback
方法
onGroupMessageReceiptMemberListQueried
onGroupMessageReceiptMemberListQueried
typedef std::function<void(const std::string& groupID, const std::vector<ZIMGroupMemberInfo>& userList, unsigned int nextFlag, const ZIMError& errorInfo)> ZIMGroupMessageReceiptMemberListQueriedCallback查询群回执消息具体已读/未读成员列表的回调接口。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| userList | const std::vector<ZIMGroupMemberInfo>& | 群成员列表。 |
| nextFlag | unsigned int | 用于查询下一页。当前值返回 0,表示列表已拉取完毕。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMutedCallback
方法
onGroupMuted
onGroupMuted
typedef std::function<void(const std::string& groupID, bool isMute, const ZIMGroupMuteInfo& mutedInfo, const ZIMError& errorInfo)> ZIMGroupMutedCallback更新群组禁言状态结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| isMute | bool | 是否禁言。 |
| mutedInfo | const ZIMGroupMuteInfo& | 群禁言信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMembersMutedCallback
方法
onGroupMembersMuted
onGroupMembersMuted
typedef std::function<void(const std::string& groupID, bool isMute, int duration, const std::vector<std::string>& mutedUserIDs, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMGroupMembersMutedCallback更新群成员禁言状态结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| isMute | bool | 是否禁言。 |
| duration | int | 禁言时长。 |
| mutedUserIDs | const std::vector<std::string>& | 被禁言的群成员用户 ID 列表。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 禁言失败的用户信息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMemberMutedListQueriedCallback
方法
onGroupMemberMutedListQueried
onGroupMemberMutedListQueried
typedef std::function<void(const std::string& groupID, unsigned long long nextFlag, const std::vector<ZIMGroupMemberInfo>& userList, const ZIMError& errorInfo)> ZIMGroupMemberMutedListQueriedCallback查询群组被禁言成员列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| nextFlag | unsigned long long | 用于查询下一页。当前值返回 0,表示列表已拉取完毕。 |
| userList | const std::vector<ZIMGroupMemberInfo>& | 群成员列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupsSearchedCallback
方法
onGroupsSearched
onGroupsSearched
typedef std::function<void(const std::vector<ZIMGroupSearchInfo>& groupSearchInfoList, unsigned int nextFlag, const ZIMError& errorInfo)> ZIMGroupsSearchedCallback搜索群组结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupSearchInfoList | const std::vector<ZIMGroupSearchInfo>& | 群组搜索信息列表。 |
| nextFlag | unsigned int | 用于查询下一页。当前值返回 0,表示列表已拉取完毕。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupMembersSearchedCallback
方法
onGroupMembersSearched
onGroupMembersSearched
typedef std::function<void(const std::string& groupID, const std::vector<ZIMGroupMemberInfo>& userList, unsigned int nextFlag, const ZIMError& errorInfo)> ZIMGroupMembersSearchedCallback搜索群成员的结果的返回。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| userList | const std::vector<ZIMGroupMemberInfo>& | 群成员列表。 |
| nextFlag | unsigned int | 用于查询下一页。当前值返回 0,表示列表已拉取完毕。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupJoinModeUpdatedCallback
方法
onGroupJoinModeUpdated
onGroupJoinModeUpdated
typedef std::function<void(const std::string& groupID, ZIMGroupJoinMode mode, const ZIMError& errorInfo)> ZIMGroupJoinModeUpdatedCallback更新群组加入模式结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| mode | ZIMGroupJoinMode | 群组加入模式。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupInviteModeUpdatedCallback
方法
onGroupInviteModeUpdated
onGroupInviteModeUpdated
typedef std::function<void(const std::string& groupID, ZIMGroupInviteMode mode, const ZIMError& errorInfo)> ZIMGroupInviteModeUpdatedCallback更新群组邀请模式结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| mode | ZIMGroupInviteMode | 群组邀请模式。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupBeInviteModeUpdatedCallback
方法
onGroupBeInviteModeUpdated
onGroupBeInviteModeUpdated
typedef std::function<void(const std::string& groupID, ZIMGroupBeInviteMode mode, const ZIMError& errorInfo)> ZIMGroupBeInviteModeUpdatedCallback更新群组被邀请模式结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| mode | ZIMGroupBeInviteMode | 群组被邀请模式。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupJoinApplicationSentCallback
方法
onGroupJoinApplicationSent
onGroupJoinApplicationSent
typedef std::function<void(const std::string& groupID, const ZIMError& errorInfo)> ZIMGroupJoinApplicationSentCallback发送群组加入申请结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupJoinApplicationAcceptedCallback
方法
onGroupJoinApplicationAccepted
onGroupJoinApplicationAccepted
typedef std::function<void(const std::string& groupID, const std::string& userID, const ZIMError& errorInfo)> ZIMGroupJoinApplicationAcceptedCallback接受群组加入申请结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| userID | const std::string& | 用户 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupJoinApplicationRejectedCallback
方法
onGroupJoinApplicationRejected
onGroupJoinApplicationRejected
typedef std::function<void(const std::string& groupID, const std::string& userID, const ZIMError& errorInfo)> ZIMGroupJoinApplicationRejectedCallback拒绝群组加入申请结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| userID | const std::string& | 用户 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupInviteApplicationsSentCallback
方法
onGroupInviteApplicationsSent
onGroupInviteApplicationsSent
typedef std::function<void(const std::string& groupID, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMGroupInviteApplicationsSentCallback发送群组邀请申请结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 邀请失败的用户信息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupInviteApplicationAcceptedCallback
方法
onGroupInviteApplicationAccepted
onGroupInviteApplicationAccepted
typedef std::function<void(const ZIMGroupFullInfo& groupInfo, const std::string& inviterUserID, const ZIMError& errorInfo)> ZIMGroupInviteApplicationAcceptedCallback接受群组邀请申请结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupInfo | const ZIMGroupFullInfo& | 群组信息。 |
| inviterUserID | const std::string& | 邀请者用户 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupInviteApplicationRejectedCallback
方法
onGroupInviteApplicationRejected
onGroupInviteApplicationRejected
typedef std::function<void(const std::string& groupID, const std::string& inviterUserID, const ZIMError& errorInfo)> ZIMGroupInviteApplicationRejectedCallback拒绝群组邀请申请结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| groupID | const std::string& | 群组 ID。 |
| inviterUserID | const std::string& | 邀请者用户 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMGroupApplicationListQueriedCallback
方法
onGroupApplicationListQueried
onGroupApplicationListQueried
typedef std::function<void(const std::vector<ZIMGroupApplicationInfo>& applicationList, unsigned long long nextFlag, const ZIMError& errorInfo)> ZIMGroupApplicationListQueriedCallback查询群组申请列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| applicationList | const std::vector<ZIMGroupApplicationInfo>& | 群组申请信息列表。 |
| nextFlag | unsigned long long | 分页标记,用于获取下一页。当前值返回 0,表示已拉取完。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCallInvitationSentCallback
方法
onCallInvitationSent
onCallInvitationSent
typedef std::function<void(const std::string& callID, const ZIMCallInvitationSentInfo& info, const ZIMError& errorInfo)> ZIMCallInvitationSentCallback发送呼叫邀请操作结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callID | const std::string& | 呼叫 ID。 |
| info | const ZIMCallInvitationSentInfo& | 呼叫邀请信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCallingInvitationSentCallback
方法
onCallingInvitationSent
onCallingInvitationSent
typedef std::function<void(const std::string& callID, const ZIMCallingInvitationSentInfo& info, const ZIMError& errorInfo)> ZIMCallingInvitationSentCallback在通话中发送邀请操作结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callID | const std::string& | 呼叫 ID。 |
| info | const ZIMCallingInvitationSentInfo& | 呼叫邀请信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCallCancelSentCallback
方法
onCallCancelSent
onCallCancelSent
typedef std::function<void(const std::string& callID, const std::vector<std::string>& errorInvitees, const ZIMError& errorInfo)> ZIMCallCancelSentCallback取消呼叫邀请操作结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callID | const std::string& | 呼叫 ID。 |
| errorInvitees | const std::vector<std::string>& | 呼叫邀请失败的用户 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCallAcceptanceSentCallback
方法
onCallAcceptanceSent
onCallAcceptanceSent
typedef std::function<void(const std::string& callID, const ZIMError& errorInfo)> ZIMCallAcceptanceSentCallback接受呼叫邀请操作结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callID | const std::string& | 呼叫 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCallRejectionSentCallback
方法
onCallRejectionSent
onCallRejectionSent
typedef std::function<void(const std::string& callID, const ZIMError& errorInfo)> ZIMCallRejectionSentCallback拒绝呼叫邀请操作结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callID | const std::string& | 呼叫 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCallJoinSentCallback
方法
onCallJoinSent
onCallJoinSent
typedef std::function<void(const std::string& callID, const ZIMCallJoinSentInfo& info, const ZIMError& errorInfo)> ZIMCallJoinSentCallback加入呼叫邀请操作结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callID | const std::string& | 呼叫 ID。 |
| info | const ZIMCallJoinSentInfo& | 呼叫加入信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCallQuitSentCallback
方法
onCallQuitSent
onCallQuitSent
typedef std::function<void(const std::string& callID, const ZIMCallQuitSentInfo& info, const ZIMError& errorInfo)> ZIMCallQuitSentCallback退出呼叫邀请操作结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callID | const std::string& | 呼叫 ID。 |
| info | const ZIMCallQuitSentInfo& | 呼叫退出信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCallEndSentCallback
方法
onCallEndSent
onCallEndSent
typedef std::function<void(const std::string& callID, const ZIMCallEndedSentInfo& info, const ZIMError& errorInfo)> ZIMCallEndSentCallback结束呼叫邀请操作结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callID | const std::string& | 呼叫 ID。 |
| info | const ZIMCallEndedSentInfo& | 呼叫结束信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCallInvitationListQueriedCallback
方法
onCallInvitationListQueried
onCallInvitationListQueried
typedef std::function<void(const std::vector<ZIMCallInfo>& callList, long long nextFlag, const ZIMError& errorInfo)> ZIMCallInvitationListQueriedCallback查询呼叫列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| callList | const std::vector<ZIMCallInfo>& | 呼叫信息列表。 |
| nextFlag | long long | 分页标记,用于获取下一页。当前值返回 0,表示已拉取完。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendAddedCallback
方法
onFriendAdded
onFriendAdded
typedef std::function<void(const ZIMFriendInfo& friendInfo, const ZIMError& errorInfo)> ZIMFriendAddedCallback添加好友结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| friendInfo | const ZIMFriendInfo& | 好友信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendsDeletedCallback
方法
onFriendsDeleted
onFriendsDeleted
typedef std::function<void(const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMFriendsDeletedCallback删除好友结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 删除失败的好友信息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendListQueriedCallback
方法
onFriendListQueried
onFriendListQueried
typedef std::function<void(const std::vector<ZIMFriendInfo>& friendList, unsigned int nextFlag, const ZIMError& errorInfo)> ZIMFriendListQueriedCallback查询好友列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| friendList | const std::vector<ZIMFriendInfo>& | 好友信息列表。 |
| nextFlag | unsigned int | 分页标记,用于获取下一页。当前值返回 0,表示已拉取完。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendsInfoQueriedCallback
方法
onFriendsInfoQueried
onFriendsInfoQueried
typedef std::function<void(const std::vector<ZIMFriendInfo>& friendInfos, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMFriendsInfoQueriedCallback批量查询好友信息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| friendInfos | const std::vector<ZIMFriendInfo>& | 好友信息列表。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 查询失败的好友信息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendsRelationCheckedCallback
方法
onFriendsRelationChecked
onFriendsRelationChecked
typedef std::function<void(const std::vector<ZIMFriendRelationInfo>& relationInfos, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMFriendsRelationCheckedCallback检查好友关系结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| relationInfos | const std::vector<ZIMFriendRelationInfo>& | 好友关系信息列表。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 查询失败的好友信息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendApplicationSentCallback
方法
onFriendApplicationSent
onFriendApplicationSent
typedef std::function<void(const ZIMFriendApplicationInfo& applicationInfo, const ZIMError& errorInfo)> ZIMFriendApplicationSentCallback发送好友申请结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| applicationInfo | const ZIMFriendApplicationInfo& | 好友申请信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendApplicationAcceptedCallback
方法
onFriendApplicationAccepted
onFriendApplicationAccepted
typedef std::function<void(const ZIMFriendInfo& friendInfo, const ZIMError& errorInfo)> ZIMFriendApplicationAcceptedCallback接受好友申请结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| friendInfo | const ZIMFriendInfo& | 好友信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendApplicationRejectedCallback
方法
onFriendApplicationRejected
onFriendApplicationRejected
typedef std::function<void(const ZIMUserInfo& userInfo, const ZIMError& errorInfo)> ZIMFriendApplicationRejectedCallback拒绝好友申请结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| userInfo | const ZIMUserInfo& | 用户信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendApplicationListQueriedCallback
方法
onFriendApplicationListQueried
onFriendApplicationListQueried
typedef std::function<void(const std::vector<ZIMFriendApplicationInfo>& applicationList, unsigned int nextFlag, const ZIMError& errorInfo)> ZIMFriendApplicationListQueriedCallback查询好友申请列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| applicationList | const std::vector<ZIMFriendApplicationInfo>& | 好友申请信息列表。 |
| nextFlag | unsigned int | 分页标记,用于获取下一页。当前值返回 0,表示已拉取完。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendAliasUpdatedCallback
方法
onFriendAliasUpdated
onFriendAliasUpdated
typedef std::function<void(const ZIMFriendInfo& friendInfo, const ZIMError& errorInfo)> ZIMFriendAliasUpdatedCallback更新好友备注名称结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| friendInfo | const ZIMFriendInfo& | 好友信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendAttributesUpdatedCallback
方法
onFriendAttributesUpdated
onFriendAttributesUpdated
typedef std::function<void(const ZIMFriendInfo& friendInfo, const ZIMError& errorInfo)> ZIMFriendAttributesUpdatedCallback更新好友属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| friendInfo | const ZIMFriendInfo& | 好友信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMFriendsSearchedCallback
方法
onFriendsSearched
onFriendsSearched
typedef std::function<void(const std::vector<ZIMFriendInfo>& friendInfos, unsigned int nextFlag, const ZIMError& errorInfo)> ZIMFriendsSearchedCallback搜索本地好友结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| friendInfos | const std::vector<ZIMFriendInfo>& | 好友信息列表。 |
| nextFlag | unsigned int | 分页标记,用于获取下一页。当前值返回 0,表示已拉取完。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMBlacklistUsersAddedCallback
方法
onBlacklistUsersAdded
onBlacklistUsersAdded
typedef std::function<void(const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMBlacklistUsersAddedCallback添加用户到黑名单的操作结果回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 添加黑名单失败的用户信息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMBlacklistUsersRemovedCallback
方法
onBlacklistUsersRemoved
onBlacklistUsersRemoved
typedef std::function<void(const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMBlacklistUsersRemovedCallback移除用户出黑名单的操作结果回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 移除黑名单失败的用户信息列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMBlacklistQueriedCallback
方法
onBlacklistQueried
onBlacklistQueried
typedef std::function<void(const std::vector<ZIMUserInfo>& blacklist, unsigned int nextFlag, const ZIMError& errorInfo)> ZIMBlacklistQueriedCallback查询黑名单结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| blacklist | const std::vector<ZIMUserInfo>& | 黑名单用户信息列表。 |
| nextFlag | unsigned int | 分页标记,用于获取下一页。当前值返回 0,表示已拉取完。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMBlacklistCheckedCallback
方法
onBlacklistChecked
onBlacklistChecked
typedef std::function<void(bool isUserInBlacklist, const ZIMError& errorInfo)> ZIMBlacklistCheckedCallback检查黑名单结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| isUserInBlacklist | bool | 是否在黑名单中。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityCreatedCallback
方法
onCommunityCreated
onCommunityCreated
typedef std::function<void(const ZIMCommunityFullInfo& communityInfo, const ZIMError& errorInfo)> ZIMCommunityCreatedCallback创建社群结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityInfo | const ZIMCommunityFullInfo& | 社群信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityDismissedCallback
方法
onCommunityDismissed
onCommunityDismissed
typedef std::function<void(const std::string& communityID, const ZIMError& errorInfo)> ZIMCommunityDismissedCallback解散社群结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityJoinedCallback
方法
onCommunityJoined
onCommunityJoined
typedef std::function<void(const ZIMCommunityFullInfo& communityInfo, const ZIMError& errorInfo)> ZIMCommunityJoinedCallback加入社群结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityInfo | const ZIMCommunityFullInfo& | 社群信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityLeftCallback
方法
onCommunityLeft
onCommunityLeft
typedef std::function<void(const std::string& communityID, const ZIMError& errorInfo)> ZIMCommunityLeftCallback退出社群结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityListQueriedCallback
方法
onCommunityListQueried
onCommunityListQueried
typedef std::function<void(const std::vector<ZIMCommunity>& communityList, long long nextFlag, const ZIMError& errorInfo)> ZIMCommunityListQueriedCallback查询社群列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityList | const std::vector<ZIMCommunity>& | 社群列表。 |
| nextFlag | long long | 下一次查询社群列表的锚点。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityNameUpdatedCallback
方法
onCommunityNameUpdated
onCommunityNameUpdated
typedef std::function<void(const std::string& communityID, const std::string& communityName, const ZIMError& errorInfo)> ZIMCommunityNameUpdatedCallback更新社群名称结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| communityName | const std::string& | 社群名称。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityAvatarUrlUpdatedCallback
方法
onCommunityAvatarUrlUpdated
onCommunityAvatarUrlUpdated
typedef std::function<void(const std::string& communityID, const std::string& communityAvatarUrl, const ZIMError& errorInfo)> ZIMCommunityAvatarUrlUpdatedCallback更新社群头像 URL 结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| communityAvatarUrl | const std::string& | 社群头像 URL。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityNoticeUpdatedCallback
方法
onCommunityNoticeUpdated
onCommunityNoticeUpdated
typedef std::function<void(const std::string& communityID, const std::string& communityNotice, const ZIMError& errorInfo)> ZIMCommunityNoticeUpdatedCallback更新社群公告结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| communityNotice | const std::string& | 社群公告。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityAttributesOperatedCallback
方法
onCommunityAttributesOperated
onCommunityAttributesOperated
typedef std::function<void(const std::string& communityID, const std::vector<std::string>& errorKeys, const ZIMError& errorInfo)> ZIMCommunityAttributesOperatedCallback操作社群属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| errorKeys | const std::vector<std::string>& | 操作失败的属性。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityNotificationStatusSetCallback
方法
onCommunityNotificationStatusSet
onCommunityNotificationStatusSet
typedef std::function<void(const std::string& communityID, const ZIMError& errorInfo)> ZIMCommunityNotificationStatusSetCallback设置社群消息通知状态结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityInfoQueriedCallback
方法
onCommunityInfoQueried
onCommunityInfoQueried
typedef std::function<void(const ZIMCommunityFullInfo& communityInfo, const ZIMError& errorInfo)> ZIMCommunityInfoQueriedCallback查询社群信息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityInfo | const ZIMCommunityFullInfo& | 社群信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityUsersInvitedCallback
方法
onCommunityUsersInvited
onCommunityUsersInvited
typedef std::function<void(const std::string& communityID, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMCommunityUsersInvitedCallback邀请用户加入社群结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 出错的用户 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityMembersKickedCallback
方法
onCommunityMembersKicked
onCommunityMembersKicked
typedef std::function<void(const std::string& communityID, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMCommunityMembersKickedCallback踢出社群成员结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 出错的用户 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityMemberRoleUpdatedCallback
方法
onCommunityMemberRoleUpdated
onCommunityMemberRoleUpdated
typedef std::function<void(const std::string& communityID, const std::string& forUserID, ZIMCommunityMemberRole memberRole, const ZIMError& errorInfo)> ZIMCommunityMemberRoleUpdatedCallback更新社群成员角色结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| forUserID | const std::string& | 设置的用户 ID |
| memberRole | ZIMCommunityMemberRole | 成员角色值 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityOwnerTransferredCallback
方法
onCommunityOwnerTransferred
onCommunityOwnerTransferred
typedef std::function<void(const std::string& communityID, const std::string& toUserID, const ZIMError& errorInfo)> ZIMCommunityOwnerTransferredCallback转让社群所有者结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| toUserID | const std::string& | 设置的用户 ID |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityMemberListQueriedCallback
方法
onCommunityMemberListQueried
onCommunityMemberListQueried
typedef std::function<void(const std::string& communityID, const std::vector<ZIMCommunityMemberInfo>& memberList, long long nextFlag, const ZIMError& errorInfo)> ZIMCommunityMemberListQueriedCallback查询社群成员列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| memberList | const std::vector<ZIMCommunityMemberInfo>& | 社群成员列表 |
| nextFlag | long long | 下一次查询社群列表的锚点。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityMembersQueriedCallback
方法
onCommunityMembersQueried
onCommunityMembersQueried
typedef std::function<void(const std::string& communityID, const std::vector<ZIMCommunityMemberInfo>& memberList, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMCommunityMembersQueriedCallback查询指定社群成员信息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| memberList | const std::vector<ZIMCommunityMemberInfo>& | 社群成员列表 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 查询出错的用户列表 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityChannelCreatedCallback
方法
onCommunityChannelCreated
onCommunityChannelCreated
typedef std::function<void(const ZIMCommunityChannelFullInfo& channelInfo, const ZIMError& errorInfo)> ZIMCommunityChannelCreatedCallback创建社群频道结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| channelInfo | const ZIMCommunityChannelFullInfo& | 社群频道信息。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityChannelDismissedCallback
方法
onCommunityChannelDismissed
onCommunityChannelDismissed
typedef std::function<void(const std::string& communityID, const std::string& channelID, const ZIMError& errorInfo)> ZIMCommunityChannelDismissedCallback解散社群频道结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| channelID | const std::string& | 社群频道 ID |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityChannelNameUpdatedCallback
方法
onCommunityChannelNameUpdated
onCommunityChannelNameUpdated
typedef std::function<void(const std::string& communityID, const std::string& channelID, const std::string& channelName, const ZIMError& errorInfo)> ZIMCommunityChannelNameUpdatedCallback更新社群频道名称结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| channelID | const std::string& | 社群频道 ID。 |
| channelName | const std::string& | 社群频道名称。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityChannelAvatarUrlUpdatedCallback
方法
onCommunityChannelAvatarUrlUpdated
onCommunityChannelAvatarUrlUpdated
typedef std::function<void(const std::string& communityID, const std::string& channelID, const std::string& channelAvatarUrl, const ZIMError& errorInfo)> ZIMCommunityChannelAvatarUrlUpdatedCallback更新社群频道头像 URL 结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| channelID | const std::string& | 社群频道 ID。 |
| channelAvatarUrl | const std::string& | 社群频道头像 URL。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityChannelNoticeUpdatedCallback
方法
onCommunityChannelNoticeUpdated
onCommunityChannelNoticeUpdated
typedef std::function<void(const std::string& communityID, const std::string& channelID, const std::string& channelNotice, const ZIMError& errorInfo)> ZIMCommunityChannelNoticeUpdatedCallback更新社群频道公告结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| channelID | const std::string& | 社群频道 ID。 |
| channelNotice | const std::string& | 社群频道公告。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityChannelAttributesOperatedCallback
方法
onCommunityChannelAttributesOperated
onCommunityChannelAttributesOperated
typedef std::function<void(const std::string& communityID, const std::string& channelID, const std::vector<std::string>& errorKeys, const ZIMError& errorInfo)> ZIMCommunityChannelAttributesOperatedCallback操作社群频道属性结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| channelID | const std::string& | 社群频道 ID。 |
| errorKeys | const std::vector<std::string>& | 操作失败的属性。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityChannelsInfoQueriedCallback
方法
onCommunityChannelsInfoQueried
onCommunityChannelsInfoQueried
typedef std::function<void(const std::string& communityID, const std::vector<ZIMCommunityChannelFullInfo>& channelInfos, const std::vector<std::string>& errorChannelIDs, const ZIMError& errorInfo)> ZIMCommunityChannelsInfoQueriedCallback查询社群频道信息结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| channelInfos | const std::vector<ZIMCommunityChannelFullInfo>& | 查询到的社群频道列表。 |
| errorChannelIDs | const std::vector<std::string>& | 查询失败的频道 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityChannelListQueriedCallback
方法
onCommunityChannelListQueried
onCommunityChannelListQueried
typedef std::function<void(const std::string& communityID, const std::vector<ZIMCommunityChannel>& channelList, long long nextFlag, const ZIMError& errorInfo)> ZIMCommunityChannelListQueriedCallback查询社群频道列表结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| channelList | const std::vector<ZIMCommunityChannel>& | 社群频道列表。 |
| nextFlag | long long | 查询下一页频道列表的锚点。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityMembersMutedCallback
方法
onCommunityMembersMuted
onCommunityMembersMuted
typedef std::function<void(const std::string& communityID, const std::string& channelID, bool isMute, const std::vector<ZIMErrorUserInfo>& errorUserList, const ZIMError& errorInfo)> ZIMCommunityMembersMutedCallback禁言社群成员结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| channelID | const std::string& | 频道 ID,为空则在社群层面禁言。 |
| isMute | bool | 是否禁言。 |
| errorUserList | const std::vector<ZIMErrorUserInfo>& | 操作失败的用户列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
ZIMCommunityChannelsMutedCallback
方法
onCommunityChannelsMuted
onCommunityChannelsMuted
typedef std::function<void(const std::string& communityID, bool isMute, const std::vector<std::string>& errorChannelIDs, const ZIMError& errorInfo)> ZIMCommunityChannelsMutedCallback禁言社群频道结果的回调。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| communityID | const std::string& | 社群 ID。 |
| isMute | bool | 是否禁言。 |
| errorChannelIDs | const std::vector<std::string>& | 操作失败的频道 ID 列表。 |
| errorInfo | const ZIMError& | 错误码信息,用于获取接口调用结果。code 为 0 表示成功,非 0 表示失败,当出现接口调用失败情况下,开发者应查看官网错误码文档查询解决方案。 |
