NIMSDK-iOS
载入中...
搜索中...
未找到
<NIMQChatMessageExtendManager>协议 参考

#import <NIMQChatMessageExtendManagerProtocol.h>

类 <NIMQChatMessageExtendManager> 继承关系图:

构造函数

(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:
 

详细描述

圈组消息扩展管理器

函数文档

◆ addDelegate:

- (void) addDelegate: (id< NIMQChatMessageExtendManagerDelegate >)  delegate

添加通知对象

参数
delegate通知对象

◆ addQuickCommentType:toMessage:completion:

- (void) addQuickCommentType: (int64_t)  type
toMessage: (NIMQChatMessage *)  message
completion: (NIMQChatHandler _Nullable)  completion 

发送快捷评论

参数
type评论类型
message被评论消息
completion完成回调

◆ batchGetMessageThreadInfo:completion:

- (void) batchGetMessageThreadInfo: (NSArray< NIMQChatMessage * > *)  param
completion: (nullable NIMQChatBatchGetMessageThreadInfoHandler completion 

批量从服务端查询消息Thread的meta信息

参数
param传入参数,消息数组
completion结果回调

◆ deleteQuickCommentType:toMessage:completion:

- (void) deleteQuickCommentType: (int64_t)  type
toMessage: (NIMQChatMessage *)  message
completion: (NIMQChatHandler _Nullable)  completion 

从服务端删除一条评论

参数
type评论类型
message被评论消息
completion完成回调

◆ fetchQuickComments:completion:

- (void) fetchQuickComments: (NSArray< NIMQChatMessage * > *)  messages
completion: (NIMQChatFetchQuickCommentsByMsgsHandler completion 

批量获取快捷评论

参数
messages参数,消息列表,必须为同一个频道内的消息
completion完成回调

◆ getCommentators:completion:

- (void) getCommentators: (NIMQChatGetCommentatorsParam *)  param
completion: (NIMQChatGetCommentatorsHandler _Nullable)  completion 

获取评论者列表

参数
message
completion

◆ getReferMessages:type:completion:

- (void) getReferMessages: (NIMQChatMessage *)  message
type: (NIMQChatMessageReferType type
completion: (nullable NIMQChatGetMessageHistoryHandler completion 

从服务端查询引用的消息

参数
message消息
type引用类型
completion结果回调

◆ getThreadMessages:completion:

- (void) getThreadMessages: (NIMQChatGetThreadMessagesParam *)  param
completion: (nullable NIMQChatGetThreadMessagesHandler completion 

从服务端查询Thread的所有消息

参数
param传入参数
completion结果回调

◆ removeDelegate:

- (void) removeDelegate: (id< NIMQChatMessageExtendManagerDelegate >)  delegate

移除通知对象

参数
delegate通知对象

◆ reply:to:completion:

- (void) reply: (NIMQChatMessage *)  message
to: (NIMQChatMessage *)  target
completion: (__nullable NIMQChatHandler completion 

异步回复消息

参数
message新生成的消息
target被回复的消息
completion发送完成后的回调,这里的回调完成只表示当前这个函数调用完成,需要后续的回调才能判断消息是否已经发送至服务器

◆ reply:to:error:

- (BOOL) reply: (NIMQChatMessage *)  message
to: (NIMQChatMessage *)  target
error: (NSError *__nullable *)  error 

回复消息

参数
message新生成的消息
target被回复的消息
error错误 如果在准备发送消息阶段发生错误,这个error会被填充相应的信息
返回
是否调用成功,这里返回的 result 只是表示当前这个函数调用是否成功,需要后续的回调才能够判断消息是否已经发送至服务器

该协议的文档由以下文件生成: