NIMSDK-iOS
|
类 | |
protocol | <NIMChatExtendManagerDelegate> |
protocol | <NIMChatExtendManager> |
类型定义 | |
typedef void(^ | NIMFetchHistoryMessagesByIds) (NSError *_Nullable error, NSMapTable< NIMChatExtendBasicInfo *, NIMMessage * > *_Nullable result) |
typedef void(^ | NIMQuickCommentHandler) (NSError *_Nullable error) |
typedef void(^ | NIMGetQuickCommentsByMsgHandler) (NSError *_Nullable error, NSMapTable< NSNumber *, NSArray< NIMQuickComment * > * > *_Nullable result) |
typedef void(^ | NIMFetchCommentsByMsgsHandler) (NSError *_Nullable error, NSMapTable< NIMMessage *, NSArray< NIMQuickComment * > * > *_Nullable result, NSArray< NIMMessage * > *_Nullable failedMessages) |
typedef void(^ | NIMCollectQueryBlock) (NSError *_Nullable error, NSArray< NIMCollectInfo * > *_Nullable collectInfos, NSInteger totalCount) |
typedef void(^ | NIMAddCollectBlock) (NSError *_Nullable error, NIMCollectInfo *_Nullable collectInfo) |
typedef void(^ | NIMRemoveCollectBlock) (NSError *_Nullable error, NSInteger total_removed) |
typedef void(^ | NIMUpdateCollectBlock) (NSError *_Nullable error, NIMCollectInfo *_Nullable collectInfo) |
typedef void(^ | NIMAddStickTopSessionCompletion) (NSError *_Nullable error, NIMStickTopSessionInfo *_Nullable newInfo) |
typedef void(^ | NIMRemoveStickTopSessionCompletion) (NSError *_Nullable error, NIMStickTopSessionInfo *_Nullable removedInfo) |
typedef void(^ | NIMUpdateStickTopSessionCompletion) (NSError *_Nullable error, NIMStickTopSessionInfo *_Nullable updatedInfo) |
typedef void(^ | NIMLoadStickTopSessionInfosCompletion) (NSError *_Nullable error, NSDictionary< NIMSession *, NIMStickTopSessionInfo * > *_Nullable infos) |
typedef void(^ | NIMAddMessagePinCompletion) (NSError *_Nullable error, NIMMessagePinItem *_Nullable item) |
typedef void(^ | NIMRemoveMessagePinCompletion) (NSError *_Nullable error, NIMMessagePinItem *_Nullable item) |
typedef void(^ | NIMUpdateMessagePinCompletion) (NSError *_Nullable error, NIMMessagePinItem *_Nullable item) |
typedef void(^ | NIMSyncMessagePinCompletion) (NSError *_Nullable error, NIMSyncMessagePinResponse *_Nullable response) |
typedef void(^ | NIMLoadMessagePinsCompletion) (NSError *_Nullable error, NSArray< NIMMessagePinItem * > *_Nullable items) |
typedef void(^ | NIMLoadRecentSessionsCompletion) (NSError *_Nullable error, NSArray< NIMRecentSession * > *_Nullable recentSessions) |
变量 | |
NS_ASSUME_NONNULL_BEGIN typedef void(^ | NIMThreadTalkFetchMessages )(NSError *_Nullable error, NIMThreadTalkFetchResult *_Nullable result) |
typedef void(^ NIMAddCollectBlock) (NSError *_Nullable error, NIMCollectInfo *_Nullable collectInfo) |
添加收藏回调block
error | 错误,如果成功则error为nil |
collectInfo | 添加的收藏 |
typedef void(^ NIMAddMessagePinCompletion) (NSError *_Nullable error, NIMMessagePinItem *_Nullable item) |
添加PIN记录的回调
error | 错误,如果成功则error为nil |
item | 新增的PIN记录 |
typedef void(^ NIMAddStickTopSessionCompletion) (NSError *_Nullable error, NIMStickTopSessionInfo *_Nullable newInfo) |
添加置顶会话回调block
error | 错误,如果成功则error为nil |
newInfo | 被添加的置顶会话 |
typedef void(^ NIMCollectQueryBlock) (NSError *_Nullable error, NSArray< NIMCollectInfo * > *_Nullable collectInfos, NSInteger totalCount) |
读取收藏列表回调block
error | 错误,如果成功则error为nil |
collectInfos | 读取的消息列表 |
totalCount | 收藏总条数,用来判断是否还有更多 |
typedef void(^ NIMFetchCommentsByMsgsHandler) (NSError *_Nullable error, NSMapTable< NIMMessage *, NSArray< NIMQuickComment * > * > *_Nullable result, NSArray< NIMMessage * > *_Nullable failedMessages) |
批量获取
error | 结果 |
result | 评论列表 |
failedMessages | 查询失败的列表 |
typedef void(^ NIMFetchHistoryMessagesByIds) (NSError *_Nullable error, NSMapTable< NIMChatExtendBasicInfo *, NIMMessage * > *_Nullable result) |
获取Thread Talk子消息回调
error | 错误结果 |
result | 子消息列表 |
typedef void(^ NIMGetQuickCommentsByMsgHandler) (NSError *_Nullable error, NSMapTable< NSNumber *, NSArray< NIMQuickComment * > * > *_Nullable result) |
本地获取快捷评论结果
error | 错误结果 |
result | 获取结果 |
typedef void(^ NIMLoadMessagePinsCompletion) (NSError *_Nullable error, NSArray< NIMMessagePinItem * > *_Nullable items) |
加载PIN记录的回调
error | 错误,如果成功则error为nil |
items | 更新成功后的所有pin消息 |
typedef void(^ NIMLoadRecentSessionsCompletion) (NSError *_Nullable error, NSArray< NIMRecentSession * > *_Nullable recentSessions) |
查找最近会话回调
recentSessions | 最近会话列表 |
typedef void(^ NIMLoadStickTopSessionInfosCompletion) (NSError *_Nullable error, NSDictionary< NIMSession *, NIMStickTopSessionInfo * > *_Nullable infos) |
本地查找置顶会话回调block
infos | 所有本地置顶会话信息 |
typedef void(^ NIMQuickCommentHandler) (NSError *_Nullable error) |
完成回调
error | 错误码 |
typedef void(^ NIMRemoveCollectBlock) (NSError *_Nullable error, NSInteger total_removed) |
更新收藏回调block
error | 错误,如果成功则error为nil |
total_removed | 删除的数量 |
typedef void(^ NIMRemoveMessagePinCompletion) (NSError *_Nullable error, NIMMessagePinItem *_Nullable item) |
移除Pin的回调
error | 错误,如果成功则error为nil |
item | 被移除的PIN记录 |
typedef void(^ NIMRemoveStickTopSessionCompletion) (NSError *_Nullable error, NIMStickTopSessionInfo *_Nullable removedInfo) |
移除置顶会话回调block
error | 错误,如果成功则error为nil |
removedInfo | 被删除的置顶信息 |
typedef void(^ NIMSyncMessagePinCompletion) (NSError *_Nullable error, NIMSyncMessagePinResponse *_Nullable response) |
增量更新PIN记录的回调
error | 错误,如果成功则error为nil |
response | 更新成功后的响应对象 |
typedef void(^ NIMUpdateCollectBlock) (NSError *_Nullable error, NIMCollectInfo *_Nullable collectInfo) |
移除收藏回调block
error | 错误,如果成功则error为nil |
collectInfo | 更新后的收藏 |
typedef void(^ NIMUpdateMessagePinCompletion) (NSError *_Nullable error, NIMMessagePinItem *_Nullable item) |
更新PIN记录的回调
error | 错误,如果成功则error为nil |
item | 被更新的PIN记录 |
typedef void(^ NIMUpdateStickTopSessionCompletion) (NSError *_Nullable error, NIMStickTopSessionInfo *_Nullable updatedInfo) |
更新置顶会话回调block
error | 错误,如果成功则error为nil |
updatedInfo | 更新后的置顶会话 |
NS_ASSUME_NONNULL_BEGIN typedef void(^ NIMThreadTalkFetchMessages) (NSError *_Nullable error, NIMThreadTalkFetchResult *_Nullable result) | ( | NSError *_Nullable | error, |
NIMThreadTalkFetchResult *_Nullable | result | ||
) |
获取Thread Talk子消息回调
error | 请求结果 |
result | 请求结果数据 |