IM

  • IM > API 文档 > iOS API 参考 > Protocol References > BMXChatManager Protocol Reference

    BMXChatManager Protocol Reference

    最近更新时间:2021-06-27 11:49:11

    BMXChatManager Protocol Reference

    Conforms to NSObject
    Declared in BMXChatManager.h

    Overview

    缩略图生成策略,

    - sendMessage:

    发送消息,消息状态变化会通过listener通知 *

    - (void)sendMessage:(BMXMessageObject *) _message_

    Discussion

    发送消息,消息状态变化会通过listener通知 *

    Declared In

    BMXChatManager.h

    - resendMessage:completion:

    重新发送消息,消息状态变化会通过listener通知 *

    - (void)resendMessage:(BMXMessageObject *) _message_ completion:(void ( ^ ) ( BMXMessageObject *message , BMXError *error )) _aCompletionBlock_

    Discussion

    重新发送消息,消息状态变化会通过listener通知 *

    Declared In

    BMXChatManager.h

    - recallMessage:completion:

    撤回消息,消息状态变化会通过listener通知 *

    - (void)recallMessage:(BMXMessageObject *) _message_ completion:(void ( ^ ) ( BMXMessageObject *message , BMXError *error )) _aCompletionBlock_

    Discussion

    撤回消息,消息状态变化会通过listener通知 *

    Declared In

    BMXChatManager.h

    - forwardMessage:

    简单转发消息,用户应当通过BMXMessagse::createForwardMessage()先创建转发消息 *

    - (void)forwardMessage:(BMXMessageObject *) _message_

    Discussion

    简单转发消息,用户应当通过BMXMessagse::createForwardMessage()先创建转发消息 *

    Declared In

    BMXChatManager.h

    - ackMessage:

    发送已读回执

    - (void)ackMessage:(BMXMessageObject *) _message_

    Discussion

    发送已读回执

    Declared In

    BMXChatManager.h

    - readCancel:

    标记此消息为未读,该消息同步到当前用户的所有设备

    - (void)readCancel:(BMXMessageObject *) _message_

    Discussion

    标记此消息为未读,该消息同步到当前用户的所有设备

    Declared In

    BMXChatManager.h

    - readAllMessage:

    标记此消息及之前全部消息为已读,该消息同步到当前用户的所有设备

    - (void)readAllMessage:(BMXMessageObject *) _message_

    Discussion

    标记此消息及之前全部消息为已读,该消息同步到当前用户的所有设备

    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

    - downloadAttachment:

    下载附件,下载状态变化和进度通过listener通知

    - (void)downloadAttachment:(BMXMessageObject *) _message_

    Discussion

    下载附件,下载状态变化和进度通过listener通知

    Declared In

    BMXChatManager.h

    - insetMessages:completion:

    插入消息

    - (void)insetMessages:(NSArray<BMXMessageObject*> *) _list_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    插入消息

    Declared In

    BMXChatManager.h

    - getMessage:completion:

    读取一条消息

    - (void)getMessage:(NSInteger) _messageId_ completion:(void ( ^ ) ( BMXMessageObject *message , BMXError *error )) _aCompletionBlock_

    Discussion

    读取一条消息

    Declared In

    BMXChatManager.h

    - removeMessage:synchronizeDeviceForce:

    删除此消息,该消息同步到当前用户的其它设备

    - (void)removeMessage:(BMXMessageObject *) _message_ synchronizeDeviceForce:(BOOL) _synchronizeDeviceForce_

    Discussion

    删除此消息,该消息同步到当前用户的其它设备

    Declared In

    BMXChatManager.h

    - deleteConversationByConversationId:synchronize:

    删除会话

    - (void)deleteConversationByConversationId:(NSInteger) _conversationId_ synchronize:(BOOL) _synchronize_

    Discussion

    删除会话

    Declared In

    BMXChatManager.h

    - openConversation:type:createIfNotExist:

    打开一个会话

    - (BMXConversation *)openConversation:(NSInteger) _conversationId_ type:(BMXConversationType) _type_ createIfNotExist:(bool) _create_

    Discussion

    打开一个会话

    Declared In

    BMXChatManager.h

    - getAttachmentDir

    获取附件保存路径

    - (NSString *)getAttachmentDir

    Discussion

    获取附件保存路径

    Declared In

    BMXChatManager.h

    - getAttachmentDirForConversationWith:

    获取会话的附件保存路径

    - (NSString *)getAttachmentDirForConversationWith:(NSString *) _conversationId_

    Discussion

    获取会话的附件保存路径

    Declared In

    BMXChatManager.h

    - getAllConversationsWithCompletion:

    获取所有会话

    - (void)getAllConversationsWithCompletion:(void ( ^ ) ( NSArray *conversations )) _aCompletionBlock_

    Discussion

    获取所有会话

    Declared In

    BMXChatManager.h

    - getAllConversationsUnreadCountWithCompletion:

    获取所有会话的全部未读数(标记为屏蔽的个人和群组的未读数不统计在内)

    - (void)getAllConversationsUnreadCountWithCompletion:(void ( ^ ) ( int count )) _aCompletionBlock_

    Parameters

    aCompletionBlock count

    Discussion

    获取所有会话的全部未读数(标记为屏蔽的个人和群组的未读数不统计在内)

    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

    - 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

    - 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

    - addChatListener:

    添加聊天监听者

    - (void)addChatListener:(id<BMXChatServiceProtocol>) _listener_

    Discussion

    添加聊天监听者

    Declared In

    BMXChatManager.h

    - removeChatListener:

    移除聊天监听者

    - (void)removeChatListener:(id<BMXChatServiceProtocol>) _listener_

    Discussion

    移除聊天监听者

    Declared In

    BMXChatManager.h

    以上内容是否对您有帮助?
  • Qvm free helper
    Close