NIMSDK-iOS
|
#import <NIMQChatMessageExtendManagerProtocol.h>
构造函数 | |
(BOOL) | - reply:to:error: |
(void) | - reply:to:completion: |
(void) | - getReferMessages:type:completion: |
(void) | - getThreadMessages:completion: |
(void) | - batchGetMessageThreadInfo:completion: |
(void) | - addQuickCommentType:toMessage:completion: |
(void) | - deleteQuickCommentType:toMessage:completion: |
(void) | - fetchQuickComments:completion: |
(void) | - getCommentators:completion: |
(void) | - addDelegate: |
(void) | - removeDelegate: |
圈组消息扩展管理器
- (void) addDelegate: | (id< NIMQChatMessageExtendManagerDelegate >) | delegate |
添加通知对象
delegate | 通知对象 |
- (void) addQuickCommentType: | (int64_t) | type | |
toMessage: | (NIMQChatMessage *) | message | |
completion: | (NIMQChatHandler _Nullable) | completion | |
发送快捷评论
type | 评论类型 |
message | 被评论消息 |
completion | 完成回调 |
- (void) batchGetMessageThreadInfo: | (NSArray< NIMQChatMessage * > *) | param | |
completion: | (nullable NIMQChatBatchGetMessageThreadInfoHandler) | completion | |
批量从服务端查询消息Thread的meta信息
param | 传入参数,消息数组 |
completion | 结果回调 |
- (void) deleteQuickCommentType: | (int64_t) | type | |
toMessage: | (NIMQChatMessage *) | message | |
completion: | (NIMQChatHandler _Nullable) | completion | |
从服务端删除一条评论
type | 评论类型 |
message | 被评论消息 |
completion | 完成回调 |
- (void) fetchQuickComments: | (NSArray< NIMQChatMessage * > *) | messages | |
completion: | (NIMQChatFetchQuickCommentsByMsgsHandler) | completion | |
批量获取快捷评论
messages | 参数,消息列表,必须为同一个频道内的消息 |
completion | 完成回调 |
- (void) getCommentators: | (NIMQChatGetCommentatorsParam *) | param | |
completion: | (NIMQChatGetCommentatorsHandler _Nullable) | completion | |
获取评论者列表
message | |
completion |
- (void) getReferMessages: | (NIMQChatMessage *) | message | |
type: | (NIMQChatMessageReferType) | type | |
completion: | (nullable NIMQChatGetMessageHistoryHandler) | completion | |
从服务端查询引用的消息
message | 消息 |
type | 引用类型 |
completion | 结果回调 |
- (void) getThreadMessages: | (NIMQChatGetThreadMessagesParam *) | param | |
completion: | (nullable NIMQChatGetThreadMessagesHandler) | completion | |
从服务端查询Thread的所有消息
param | 传入参数 |
completion | 结果回调 |
- (void) removeDelegate: | (id< NIMQChatMessageExtendManagerDelegate >) | delegate |
移除通知对象
delegate | 通知对象 |
- (void) reply: | (NIMQChatMessage *) | message | |
to: | (NIMQChatMessage *) | target | |
completion: | (__nullable NIMQChatHandler) | completion | |
异步回复消息
message | 新生成的消息 |
target | 被回复的消息 |
completion | 发送完成后的回调,这里的回调完成只表示当前这个函数调用完成,需要后续的回调才能判断消息是否已经发送至服务器 |
- (BOOL) reply: | (NIMQChatMessage *) | message | |
to: | (NIMQChatMessage *) | target | |
error: | (NSError *__nullable *) | error | |
回复消息
message | 新生成的消息 |
target | 被回复的消息 |
error | 错误 如果在准备发送消息阶段发生错误,这个error会被填充相应的信息 |