NIMSDK-iOS
载入中...
搜索中...
未找到
NIMChatExtendManagerProtocol.h 文件参考
#import <Foundation/Foundation.h>
#import "NIMChatManagerProtocol.h"

浏览源代码.

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)
 

类型定义说明

◆ NIMAddCollectBlock

typedef void(^ NIMAddCollectBlock) (NSError *_Nullable error, NIMCollectInfo *_Nullable collectInfo)

添加收藏回调block

参数
error错误,如果成功则error为nil
collectInfo添加的收藏

◆ NIMAddMessagePinCompletion

typedef void(^ NIMAddMessagePinCompletion) (NSError *_Nullable error, NIMMessagePinItem *_Nullable item)

添加PIN记录的回调

参数
error错误,如果成功则error为nil
item新增的PIN记录

◆ NIMAddStickTopSessionCompletion

typedef void(^ NIMAddStickTopSessionCompletion) (NSError *_Nullable error, NIMStickTopSessionInfo *_Nullable newInfo)

添加置顶会话回调block

参数
error错误,如果成功则error为nil
newInfo被添加的置顶会话

◆ NIMCollectQueryBlock

typedef void(^ NIMCollectQueryBlock) (NSError *_Nullable error, NSArray< NIMCollectInfo * > *_Nullable collectInfos, NSInteger totalCount)

读取收藏列表回调block

参数
error错误,如果成功则error为nil
collectInfos读取的消息列表
totalCount收藏总条数,用来判断是否还有更多

◆ NIMFetchCommentsByMsgsHandler

typedef void(^ NIMFetchCommentsByMsgsHandler) (NSError *_Nullable error, NSMapTable< NIMMessage *, NSArray< NIMQuickComment * > * > *_Nullable result, NSArray< NIMMessage * > *_Nullable failedMessages)

批量获取

参数
error结果
result评论列表
failedMessages查询失败的列表

◆ NIMFetchHistoryMessagesByIds

typedef void(^ NIMFetchHistoryMessagesByIds) (NSError *_Nullable error, NSMapTable< NIMChatExtendBasicInfo *, NIMMessage * > *_Nullable result)

获取Thread Talk子消息回调

参数
error错误结果
result子消息列表

◆ NIMGetQuickCommentsByMsgHandler

typedef void(^ NIMGetQuickCommentsByMsgHandler) (NSError *_Nullable error, NSMapTable< NSNumber *, NSArray< NIMQuickComment * > * > *_Nullable result)

本地获取快捷评论结果

参数
error错误结果
result获取结果

◆ NIMLoadMessagePinsCompletion

typedef void(^ NIMLoadMessagePinsCompletion) (NSError *_Nullable error, NSArray< NIMMessagePinItem * > *_Nullable items)

加载PIN记录的回调

参数
error错误,如果成功则error为nil
items更新成功后的所有pin消息

◆ NIMLoadRecentSessionsCompletion

typedef void(^ NIMLoadRecentSessionsCompletion) (NSError *_Nullable error, NSArray< NIMRecentSession * > *_Nullable recentSessions)

查找最近会话回调

参数
recentSessions最近会话列表

◆ NIMLoadStickTopSessionInfosCompletion

typedef void(^ NIMLoadStickTopSessionInfosCompletion) (NSError *_Nullable error, NSDictionary< NIMSession *, NIMStickTopSessionInfo * > *_Nullable infos)

本地查找置顶会话回调block

参数
infos所有本地置顶会话信息

◆ NIMQuickCommentHandler

typedef void(^ NIMQuickCommentHandler) (NSError *_Nullable error)

完成回调

参数
error错误码

◆ NIMRemoveCollectBlock

typedef void(^ NIMRemoveCollectBlock) (NSError *_Nullable error, NSInteger total_removed)

更新收藏回调block

参数
error错误,如果成功则error为nil
total_removed删除的数量

◆ NIMRemoveMessagePinCompletion

typedef void(^ NIMRemoveMessagePinCompletion) (NSError *_Nullable error, NIMMessagePinItem *_Nullable item)

移除Pin的回调

参数
error错误,如果成功则error为nil
item被移除的PIN记录

◆ NIMRemoveStickTopSessionCompletion

typedef void(^ NIMRemoveStickTopSessionCompletion) (NSError *_Nullable error, NIMStickTopSessionInfo *_Nullable removedInfo)

移除置顶会话回调block

参数
error错误,如果成功则error为nil
removedInfo被删除的置顶信息

◆ NIMSyncMessagePinCompletion

typedef void(^ NIMSyncMessagePinCompletion) (NSError *_Nullable error, NIMSyncMessagePinResponse *_Nullable response)

增量更新PIN记录的回调

参数
error错误,如果成功则error为nil
response更新成功后的响应对象

◆ NIMUpdateCollectBlock

typedef void(^ NIMUpdateCollectBlock) (NSError *_Nullable error, NIMCollectInfo *_Nullable collectInfo)

移除收藏回调block

参数
error错误,如果成功则error为nil
collectInfo更新后的收藏

◆ NIMUpdateMessagePinCompletion

typedef void(^ NIMUpdateMessagePinCompletion) (NSError *_Nullable error, NIMMessagePinItem *_Nullable item)

更新PIN记录的回调

参数
error错误,如果成功则error为nil
item被更新的PIN记录

◆ NIMUpdateStickTopSessionCompletion

typedef void(^ NIMUpdateStickTopSessionCompletion) (NSError *_Nullable error, NIMStickTopSessionInfo *_Nullable updatedInfo)

更新置顶会话回调block

参数
error错误,如果成功则error为nil
updatedInfo更新后的置顶会话

变量说明

◆ NIMThreadTalkFetchMessages

NS_ASSUME_NONNULL_BEGIN typedef void(^ NIMThreadTalkFetchMessages) (NSError *_Nullable error, NIMThreadTalkFetchResult *_Nullable result) ( NSError *_Nullable  error,
NIMThreadTalkFetchResult *_Nullable  result 
)

获取Thread Talk子消息回调

参数
error请求结果
result请求结果数据