NIMQChatMessageExtendManager Protocol Reference

Conforms to NSObject
Declared in NIMQChatMessageExtendManagerProtocol.h

Overview

圈组消息扩展管理器

– reply:to:error: required method

回复消息

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

Parameters

message

新生成的消息

target

被回复的消息

error

错误 如果在准备发送消息阶段发生错误,这个error会被填充相应的信息

Return Value

是否调用成功,这里返回的 result 只是表示当前这个函数调用是否成功,需要后续的回调才能够判断消息是否已经发送至服务器

Discussion

回复消息

Declared In

NIMQChatMessageExtendManagerProtocol.h

– reply:to:completion: required method

异步回复消息

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

Parameters

message

新生成的消息

target

被回复的消息

completion

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

Discussion

异步回复消息

Declared In

NIMQChatMessageExtendManagerProtocol.h

– getReferMessages:type:completion: required method

从服务端查询引用的消息

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

Parameters

message

消息

type

引用类型

completion

结果回调

Discussion

从服务端查询引用的消息

Declared In

NIMQChatMessageExtendManagerProtocol.h

– getThreadMessages:completion: required method

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

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

Parameters

param

传入参数

completion

结果回调

Discussion

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

Declared In

NIMQChatMessageExtendManagerProtocol.h

– batchGetMessageThreadInfo:completion: required method

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

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

Parameters

param

传入参数,消息数组

completion

结果回调

Discussion

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

Declared In

NIMQChatMessageExtendManagerProtocol.h

– addQuickCommentType:toMessage:completion: required method

发送快捷评论

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

Parameters

type

评论类型

message

被评论消息

completion

完成回调

Discussion

发送快捷评论

Declared In

NIMQChatMessageExtendManagerProtocol.h

– deleteQuickCommentType:toMessage:completion: required method

从服务端删除一条评论

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

Parameters

type

评论类型

message

被评论消息

completion

完成回调

Discussion

从服务端删除一条评论

Declared In

NIMQChatMessageExtendManagerProtocol.h

– fetchQuickComments:completion: required method

批量获取快捷评论

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

Parameters

messages

参数,消息列表,必须为同一个频道内的消息

completion

完成回调

Discussion

批量获取快捷评论

Declared In

NIMQChatMessageExtendManagerProtocol.h

– addDelegate: required method

添加通知对象

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

Parameters

delegate

通知对象

Discussion

添加通知对象

Declared In

NIMQChatMessageExtendManagerProtocol.h

– removeDelegate: required method

移除通知对象

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

Parameters

delegate

通知对象

Discussion

移除通知对象

Declared In

NIMQChatMessageExtendManagerProtocol.h