BMXChatManager
Conforms to NSObject Declared in BMXChatManager.h
Overview
聊天管理器
Instance Methods
ackMessage:
发送已读回执
- (void)ackMessage:(BMXMessageObject *)*message*
Discussion
发送已读回执
Declared In
BMXChatManager.h
ackMessageDelivered:
发送送达回执
- (void)ackMessageDelivered:(BMXMessageObject *)*message*
Discussion
发送送达回执
Declared In
BMXChatManager.h
addChatListener:
添加聊天监听者
- (void)addChatListener:(id<BMXChatServiceProtocol>)*listener*
Discussion
添加聊天监听者
Declared In
BMXChatManager.h
addDelegate:
- (void)addDelegate:(id<BMXChatServiceProtocol>)*aDelegate*
addDelegate:delegateQueue:
- (void)addDelegate:(id<BMXChatServiceProtocol>)*aDelegate* delegateQueue:(dispatch_queue_t)*aQueue*
deleteConversationByConversationId:synchronize:
删除会话
- (void)deleteConversationByConversationId:(NSInteger)*conversationId* synchronize:(BOOL)*synchronize*
Discussion
删除会话
Declared In
BMXChatManager.h
downloadAttachment:
下载附件,下载状态变化和进度通过listener通知
- (void)downloadAttachment:(BMXMessageObject *)*message*
Discussion
下载附件,下载状态变化和进度通过listener通知
Declared In
BMXChatManager.h
downloadThumbnail:strategy:
下载缩略图,下载状态变化和进度通过listener通知 缩略图生成策略,1 - 第三方服务器生成, 2 - 本地服务器生成,默认值是 1。
- (void)downloadThumbnail:(BMXMessageObject *)*message* strategy:(ThumbnailStrategy)*strategy*
Discussion
下载缩略图,下载状态变化和进度通过listener通知 缩略图生成策略,1 - 第三方服务器生成, 2 - 本地服务器生成,默认值是 1。
Declared In
BMXChatManager.h
forwardMessage:
简单转发消息,用户应当通过BMXMessagse::createForwardMessage()先创建转发消息 *
- (void)forwardMessage:(BMXMessageObject *)*message*
Discussion
简单转发消息,用户应当通过BMXMessagse::createForwardMessage()先创建转发消息 *
Declared In
BMXChatManager.h
getAllConversationsUnreadCountWithCompletion:
获取所有会话的全部未读数(标记为屏蔽的个人和群组的未读数不统计在内)
- (void)getAllConversationsUnreadCountWithCompletion:(void ( ^ ) ( int count ))*aCompletionBlock*
Parameters
aCompletionBlock count
Discussion
获取所有会话的全部未读数(标记为屏蔽的个人和群组的未读数不统计在内)
Declared In
BMXChatManager.h
getAllConversationsWithCompletion:
获取所有会话
- (void)getAllConversationsWithCompletion:(void ( ^ ) ( NSArray *conversations ))*aCompletionBlock*
Discussion
获取所有会话
Declared In
BMXChatManager.h
getAttachmentDir
获取附件保存路径
- (NSString *)getAttachmentDir
Discussion
获取附件保存路径
Declared In
BMXChatManager.h
getAttachmentDirForConversationWith:
获取会话的附件保存路径
- (NSString *)getAttachmentDirForConversationWith:(NSString *)*conversationId*
Discussion
获取会话的附件保存路径
Declared In
BMXChatManager.h
getGroupAckMessageUnreadUserIdListWithMessage:completion:
获取发送的群组消息未读用户id列表
- (void)getGroupAckMessageUnreadUserIdListWithMessage:(BMXMessageObject *)*message* completion:(void ( ^ ) ( NSArray *groupMemberIdList , BMXError *error ))*aCompletionBlock*
Parameters
message 需要获取未读用户id列表的消息
aCompletionBlock 对该条消息未读的用户id列表,初始传入为空列表
Discussion
获取发送的群组消息未读用户id列表
Declared In
BMXChatManager.h
getGroupAckMessageUserIdListWithMessage:completion:
获取发送的群组消息已读用户id列表
- (void)getGroupAckMessageUserIdListWithMessage:(BMXMessageObject *)*message* completion:(void ( ^ ) ( NSArray *groupMemberIdList , BMXError *error ))*aCompletionBlock*
Parameters
message 需要获取已读用户id列表的消息
aCompletionBlock 对该条消息已读的用户id列表,初始传入为空列表
Discussion
获取发送的群组消息已读用户id列表
Declared In
BMXChatManager.h
getMessage:completion:
读取一条消息
- (void)getMessage:(NSInteger)*messageId* completion:(void ( ^ ) ( BMXMessageObject *message , BMXError *error ))*aCompletionBlock*
Discussion
读取一条消息
Declared In
BMXChatManager.h
insetMessages:completion:
插入消息
- (void)insetMessages:(NSArray<BMXMessageObject*> *)*list* completion:(void ( ^ ) ( BMXError *error ))*aCompletionBlock*
Discussion
插入消息
Declared In
BMXChatManager.h
openConversation:type:createIfNotExist:
打开一个会话
- (BMXConversation *)openConversation:(NSInteger)*conversationId* type:(BMXConversationType)*type* createIfNotExist:(bool)*create*
Discussion
打开一个会话
Declared In
BMXChatManager.h
readAllMessage:
标记此消息及之前全部消息为已读,该消息同步到当前用户的所有设备
- (void)readAllMessage:(BMXMessageObject *)*message*
Discussion
标记此消息及之前全部消息为已读,该消息同步到当前用户的所有设备
Declared In
BMXChatManager.h
readCancel:
标记此消息为未读,该消息同步到当前用户的所有设备
- (void)readCancel:(BMXMessageObject *)*message*
Discussion
标记此消息为未读,该消息同步到当前用户的所有设备
Declared In
BMXChatManager.h
recallMessage:completion:
撤回消息,消息状态变化会通过listener通知 *
- (void)recallMessage:(BMXMessageObject *)*message* completion:(void ( ^ ) ( BMXMessageObject *message , BMXError *error ))*aCompletionBlock*
Discussion
撤回消息,消息状态变化会通过listener通知 *
Declared In
BMXChatManager.h
removeChatListener:
移除聊天监听者
- (void)removeChatListener:(id<BMXChatServiceProtocol>)*listener*
Discussion
移除聊天监听者
Declared In
BMXChatManager.h
removeDelegate:
- (void)removeDelegate:(id<BMXChatServiceProtocol>)*aDelegate*
removeMessage:synchronizeDeviceForce:
删除此消息,该消息同步到当前用户的其它设备
- (void)removeMessage:(BMXMessageObject *)*message* synchronizeDeviceForce:(BOOL)*synchronizeDeviceForce*
Discussion
删除此消息,该消息同步到当前用户的其它设备
Declared In
BMXChatManager.h
resendMessage:completion:
重新发送消息,消息状态变化会通过listener通知 *
- (void)resendMessage:(BMXMessageObject *)*message* completion:(void ( ^ ) ( BMXMessageObject *message , BMXError *error ))*aCompletionBlock*
Discussion
重新发送消息,消息状态变化会通过listener通知 *
Declared In
BMXChatManager.h
retrieveHistoryBMXconversation:msgId:size:completion:
拉取历史消息
- (void)retrieveHistoryBMXconversation:(BMXConversation *)*conversation* msgId:(long long)*msgId* size:(NSUInteger)*size* completion:(void ( ^ ) ( NSArray *messageListms , BMXError *error ))*aCompletionBlock*
Discussion
拉取历史消息
Declared In
BMXChatManager.h
searchMessagesByKeyWords:refTime:size:directionType:completion:
搜索消息
- (void)searchMessagesByKeyWords:(NSString *)*keywords* refTime:(NSTimeInterval)*refTime* size:(NSUInteger)*size* directionType:(BMXMessageDirection)*directionType* completion:(void ( ^ ) ( NSArray *array , BMXError *error ))*aCompletionBlock*
Discussion
搜索消息
Declared In
BMXChatManager.h
sendMessage:
发送消息,消息状态变化会通过listener通知 *
- (void)sendMessage:(BMXMessageObject *)*message*
Discussion
发送消息,消息状态变化会通过listener通知 *
Declared In
BMXChatManager.h
transferingNum
上传或下载中的文件数
- (int)transferingNum
Discussion
上传或下载中的文件数
Declared In
BMXChatManager.h
Last updated
Was this helpful?