BMXChatService Class Reference

Inherits from NSObject
Declared in floo_proxy.h

Overview

@interface 聊天Service

Properties

swigCMemOwn

@property (nonatomic) BOOL swigCMemOwn

swigCPtr

@property (nonatomic) void *swigCPtr

Instance Methods

ackMessageDeliveredWithMsg:

发送送达回执

- (void)ackMessageDeliveredWithMsg:(BMXMessage *)*msg*

Discussion

发送送达回执

Declared In

  • floo_proxy.h

Example:

ackMessageDeliveredWithMsg:completion:

发送送达回执

- (void)ackMessageDeliveredWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Discussion

发送送达回执

Declared In

  • floo_proxy.h

Example:

ackMessageWithMsg:

发送已读回执

- (void)ackMessageWithMsg:(BMXMessage *)*msg*

Parameters

msg
需要发送已读回执的消息

Declared In

  • floo_proxy.h

Example:

ackMessageWithMsg:completion:

发送已读回执

- (void)ackMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
需要发送已读回执的消息

Declared In

  • floo_proxy.h

Example:

ackPlayMessageWithMsg:

发送音频/视频消息已播放回执

- (void)ackPlayMessageWithMsg:(BMXMessage *)*msg*

Parameters

msg
需要发送已读回执的消息

Declared In

  • floo_proxy.h

Example:

ackPlayMessageWithMsg:completion:

发送音频/视频消息已播放回执

- (void)ackPlayMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
需要发送已读回执的消息

Declared In

  • floo_proxy.h

Example:

addChatListener:

添加聊天监听者

- (void)addChatListener:(id<BMXChatServiceProtocol>)*listener*

Discussion

添加聊天监听者

Declared In

  • floo_proxy.h

Example:

addDelegate:

- (void)addDelegate:(id<BMXChatServiceProtocol>)*aDelegate*

Example:

addDelegate:delegateQueue:

- (void)addDelegate:(id<BMXChatServiceProtocol>)*aDelegate* delegateQueue:(dispatch_queue_t)*aQueue*

Example:

attachmentDir

获取附件保存路径

- (NSString *)attachmentDir

Return Value

NSString

Declared In

  • floo_proxy.h

Example:

attachmentDirForConversationWithConversationId:

获取会话的附件保存路径

- (NSString *)attachmentDirForConversationWithConversationId:(long long)*conversationId*

Parameters

conversationId
需要获取会话附件路径的会话id

Return Value

NSString

Declared In

  • floo_proxy.h

Example:

cancelDownloadAttachmentWithMsg:

取消下载附件

- (void)cancelDownloadAttachmentWithMsg:(BMXMessage *)*msg*

Parameters

msg
需要取消下载附件的消息

Declared In

  • floo_proxy.h

Example:

cancelDownloadAttachmentWithMsg:completion:

取消下载附件

- (void)cancelDownloadAttachmentWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
需要取消下载附件的消息

Declared In

  • floo_proxy.h

Example:

cancelUploadAttachmentWithMsg:

取消上传附件

- (void)cancelUploadAttachmentWithMsg:(BMXMessage *)*msg*

Parameters

msg
需要取消上传附件的消息

Declared In

  • floo_proxy.h

Example:

cancelUploadAttachmentWithMsg:completion:

取消上传附件

- (void)cancelUploadAttachmentWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
需要取消上传附件的消息

Declared In

  • floo_proxy.h

Example:

dealloc

- (void)dealloc

Example:

deleteConversationWithConversationId:

- (void)deleteConversationWithConversationId:(long long)*conversationId*

Example:

deleteConversationWithConversationId:completion:

- (void)deleteConversationWithConversationId:(long long)*conversationId* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Example:

deleteConversationWithConversationId:synchronize:

删除会话

- (void)deleteConversationWithConversationId:(long long)*conversationId* synchronize:(BOOL)*synchronize*

Parameters

conversationId
需要删除会话的会话id

synchronize
是否同步删除其它设备该会话,默认为false,仅删除本设备会话

Declared In

  • floo_proxy.h

Example:

deleteConversationWithConversationId:synchronize:completion:

删除会话

- (void)deleteConversationWithConversationId:(long long)*conversationId* synchronize:(BOOL)*synchronize* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

conversationId
需要删除会话的会话id

synchronize
是否同步删除其它设备该会话,默认为false,仅删除本设备会话

Declared In

  • floo_proxy.h

Example:

downloadAttachmentByUrlWithMsgId:url:path:

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

- (void)downloadAttachmentByUrlWithMsgId:(long long)*msgId* url:(NSString *)*url* path:(NSString *)*path*

Discussion

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

Declared In

  • floo_proxy.h

Example:

downloadAttachmentByUrlWithMsgId:url:path:completion:

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

- (void)downloadAttachmentByUrlWithMsgId:(long long)*msgId* url:(NSString *)*url* path:(NSString *)*path* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Discussion

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

Declared In

  • floo_proxy.h

Example:

downloadAttachmentWithMsg:

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

- (void)downloadAttachmentWithMsg:(BMXMessage *)*msg*

Parameters

msg
需要下载附件的消息

Declared In

  • floo_proxy.h

Example:

downloadAttachmentWithMsg:completion:

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

- (void)downloadAttachmentWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
需要下载附件的消息

Declared In

  • floo_proxy.h

Example:

downloadThumbnailWithMsg:

- (void)downloadThumbnailWithMsg:(BMXMessage *)*msg*

Example:

downloadThumbnailWithMsg:completion:

- (void)downloadThumbnailWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Example:

downloadThumbnailWithMsg:strategy:

下载缩略图,下载状态变化和进度通过listener通知 缩略图生成策略,1 - 第三方服务器生成, 2 - 本地服务器生成,默认值是 1。

- (void)downloadThumbnailWithMsg:(BMXMessage *)*msg* strategy:(BMXChatService_ThumbnailStrategy)*strategy*

Parameters

msg
需要下载缩略图的消息

strategy
缩略图生成策略,1 - 第三方服务器生成, 2 - 本地服务器生成,默认值是 1。

Declared In

  • floo_proxy.h

Example:

downloadThumbnailWithMsg:strategy:completion:

下载缩略图,下载状态变化和进度通过listener通知 缩略图生成策略,1 - 第三方服务器生成, 2 - 本地服务器生成,默认值是 1。

- (void)downloadThumbnailWithMsg:(BMXMessage *)*msg* strategy:(BMXChatService_ThumbnailStrategy)*strategy* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
需要下载缩略图的消息

strategy
缩略图生成策略,1 - 第三方服务器生成, 2 - 本地服务器生成,默认值是 1。

Declared In

  • floo_proxy.h

Example:

forwardMessageWithList:to:newMsg:

合并转发消息

- (BMXErrorCode)forwardMessageWithList:(BMXMessageList *)*list* to:(BMXConversation *)*to* newMsg:(BMXMessage *)*newMsg*

Parameters

list
转发的消息列表

to
消息被转发到的会话

newMsg
转发的消息列表合并后生成的新的单条转发消息

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

forwardMessageWithMsg:

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

- (void)forwardMessageWithMsg:(BMXMessage *)*msg*

Parameters

msg
转发的消息

Declared In

  • floo_proxy.h

Example:

forwardMessageWithMsg:completion:

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

- (void)forwardMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
转发的消息

Declared In

  • floo_proxy.h

Example:

getAllConversations

获取所有会话

- (BMXConversationList *)getAllConversations

Return Value

BMXConversationList

Declared In

  • floo_proxy.h

Example:

getAllConversationsUnreadCount

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

- (int)getAllConversationsUnreadCount

Return Value

int

Declared In

  • floo_proxy.h

Example:

getAllConversationsWithCompletion:

获取所有会话

- (void)getAllConversationsWithCompletion:(void ( ^ ) ( BMXConversationList *res ))*resBlock*

Return Value

BMXConversationList

Declared In

  • floo_proxy.h

Example:

getGroupAckMessageUnreadUserIdList:completion:

获取发送的群组消息未读用户id列表

- (void)getGroupAckMessageUnreadUserIdList:(BMXMessage *)*msg* completion:(void ( ^ ) ( ListOfLongLong *res , BMXError *error ))*resBlock*

Parameters

msg
需要获取未读用户id列表的消息

groupMemberIdList
对该条消息未读的用户id列表,初始传入为空列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getGroupAckMessageUnreadUserIdList:groupMemberIdList:

获取发送的群组消息未读用户id列表

- (BMXErrorCode)getGroupAckMessageUnreadUserIdList:(BMXMessage *)*msg* groupMemberIdList:(ListOfLongLong *)*groupMemberIdList*

Parameters

msg
需要获取未读用户id列表的消息

groupMemberIdList
对该条消息未读的用户id列表,初始传入为空列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getGroupAckMessageUserIdList:completion:

获取发送的群组消息已读用户id列表

- (void)getGroupAckMessageUserIdList:(BMXMessage *)*msg* completion:(void ( ^ ) ( ListOfLongLong *res , BMXError *error ))*resBlock*

Parameters

msg
需要获取已读用户id列表的消息

groupMemberIdList
对该条消息已读的用户id列表,初始传入为空列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getGroupAckMessageUserIdList:groupMemberIdList:

获取发送的群组消息已读用户id列表

- (BMXErrorCode)getGroupAckMessageUserIdList:(BMXMessage *)*msg* groupMemberIdList:(ListOfLongLong *)*groupMemberIdList*

Parameters

msg
需要获取已读用户id列表的消息

groupMemberIdList
对该条消息已读的用户id列表,初始传入为空列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getGroupPlayAckMessageUserIdList:completion:

获取发送的群组音频/视频消息已播放用户id列表(仅用于音频/视频消息)

- (void)getGroupPlayAckMessageUserIdList:(BMXMessage *)*msg* completion:(void ( ^ ) ( ListOfLongLong *res , BMXError *error ))*resBlock*

Parameters

msg
需要获取已播放用户id列表的消息

groupMemberIdList
对该条消息已播放的用户id列表,初始传入为空列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getGroupPlayAckMessageUserIdList:groupMemberIdList:

获取发送的群组音频/视频消息已播放用户id列表(仅用于音频/视频消息)

- (BMXErrorCode)getGroupPlayAckMessageUserIdList:(BMXMessage *)*msg* groupMemberIdList:(ListOfLongLong *)*groupMemberIdList*

Parameters

msg
需要获取已播放用户id列表的消息

groupMemberIdList
对该条消息已播放的用户id列表,初始传入为空列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getGroupUnPlayAckMessageUserIdList:completion:

获取发送的群组音频/视频消息未播放用户id列表(仅用于音频/视频消息)

- (void)getGroupUnPlayAckMessageUserIdList:(BMXMessage *)*msg* completion:(void ( ^ ) ( ListOfLongLong *res , BMXError *error ))*resBlock*

Parameters

msg
需要获取未播放用户id列表的消息

groupMemberIdList
对该条消息未播放的用户id列表,初始传入为空列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getGroupUnPlayAckMessageUserIdList:groupMemberIdList:

获取发送的群组音频/视频消息未播放用户id列表(仅用于音频/视频消息)

- (BMXErrorCode)getGroupUnPlayAckMessageUserIdList:(BMXMessage *)*msg* groupMemberIdList:(ListOfLongLong *)*groupMemberIdList*

Parameters

msg
需要获取未播放用户id列表的消息

groupMemberIdList
对该条消息未播放的用户id列表,初始传入为空列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

getMessage:

读取一条消息

- (BMXMessage *)getMessage:(long long)*msgId*

Parameters

msgId
需要获取消息的消息id

Return Value

BMXMessage

Declared In

  • floo_proxy.h

Example:

initWithCptr:swigOwnCObject:

- (id)initWithCptr:(void *)*cptr* swigOwnCObject:(BOOL)*ownCObject*

Example:

insertMessagesWithList:

插入消息

- (BMXErrorCode)insertMessagesWithList:(BMXMessageList *)*list*

Parameters

list
插入消息列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

insertMessagesWithList:completion:

插入消息

- (void)insertMessagesWithList:(BMXMessageList *)*list* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

list
插入消息列表

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

openConversationWithConversationId:type:

- (BMXConversation *)openConversationWithConversationId:(long long)*conversationId* type:(BMXConversation_Type)*type*

Example:

openConversationWithConversationId:type:createIfNotExist:

打开一个会话

- (BMXConversation *)openConversationWithConversationId:(long long)*conversationId* type:(BMXConversation_Type)*type* createIfNotExist:(BOOL)*createIfNotExist*

Parameters

conversationId
需要打开的会话的会话id

type
会话的类型,单聊还是群聊。

createIfNotExist
会话不存在的情况下是否要创建本地会话,默认为创建

Return Value

BMXConversation

Declared In

  • floo_proxy.h

Example:

readAllMessageWithMsg:

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

- (void)readAllMessageWithMsg:(BMXMessage *)*msg*

Parameters

msg
需要标记为此消息以前全部消息为已读的消息

Declared In

  • floo_proxy.h

Example:

readAllMessageWithMsg:completion:

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

- (void)readAllMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
需要标记为此消息以前全部消息为已读的消息

Declared In

  • floo_proxy.h

Example:

readCancelWithMsg:

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

- (void)readCancelWithMsg:(BMXMessage *)*msg*

Parameters

msg
需要发送消息已读取消的消息

Declared In

  • floo_proxy.h

Example:

readCancelWithMsg:completion:

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

- (void)readCancelWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
需要发送消息已读取消的消息

Declared In

  • floo_proxy.h

Example:

recallMessageWithMsg:

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

- (void)recallMessageWithMsg:(BMXMessage *)*msg*

Parameters

msg
撤回的消息

Declared In

  • floo_proxy.h

Example:

recallMessageWithMsg:completion:

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

- (void)recallMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
撤回的消息

Declared In

  • floo_proxy.h

Example:

removeChatListener:

移除聊天监听者

- (void)removeChatListener:(id<BMXChatServiceProtocol>)*listener*

Discussion

移除聊天监听者

Declared In

  • floo_proxy.h

Example:

removeDelegate:

- (void)removeDelegate:(id<BMXChatServiceProtocol>)*aDelegate*

Example:

removeMessageWithMsg:

- (void)removeMessageWithMsg:(BMXMessage *)*msg*

Example:

removeMessageWithMsg:completion:

- (void)removeMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Example:

removeMessageWithMsg:synchronize:

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

- (void)removeMessageWithMsg:(BMXMessage *)*msg* synchronize:(BOOL)*synchronize*

Parameters

msg
需要删除的消息

synchronize
是否同步到其它设备,不同步的情况下只会删除本地存储的该条消息

Declared In

  • floo_proxy.h

Example:

removeMessageWithMsg:synchronize:completion:

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

- (void)removeMessageWithMsg:(BMXMessage *)*msg* synchronize:(BOOL)*synchronize* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
需要删除的消息

synchronize
是否同步到其它设备,不同步的情况下只会删除本地存储的该条消息

Declared In

  • floo_proxy.h

Example:

resendMessageWithMsg:

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

- (void)resendMessageWithMsg:(BMXMessage *)*msg*

Parameters

msg
重新发送的消息

Declared In

  • floo_proxy.h

Example:

resendMessageWithMsg:completion:

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

- (void)resendMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
重新发送的消息

Declared In

  • floo_proxy.h

Example:

retrieveHistoryMessagesWithConversation:refMsgId:size:completion:

拉取历史消息

- (void)retrieveHistoryMessagesWithConversation:(BMXConversation *)*conversation* refMsgId:(long long)*refMsgId* size:(unsigned long)*size* completion:(void ( ^ ) ( BMXMessageList *res , BMXError *aError ))*resBlock*

Parameters

conversation
需要拉取历史消息的会话

refMsgId
拉取会话消息的起始消息Id

size
拉取的最大消息条数

result
拉取操作获取的消息列表,外部初始化传入空列表。

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

retrieveHistoryMessagesWithConversation:refMsgId:size:result:

拉取历史消息

- (BMXErrorCode)retrieveHistoryMessagesWithConversation:(BMXConversation *)*conversation* refMsgId:(long long)*refMsgId* size:(unsigned long)*size* result:(BMXMessageList *)*result*

Parameters

conversation
需要拉取历史消息的会话

refMsgId
拉取会话消息的起始消息Id

size
拉取的最大消息条数

result
拉取操作获取的消息列表,外部初始化传入空列表。

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

searchMessagesByKeyWordsWithKeywords:refTime:size:arg5:completion:

使用关键字搜索消息

- (void)searchMessagesByKeyWordsWithKeywords:(NSString *)*keywords* refTime:(long long)*refTime* size:(unsigned long)*size* arg5:(BMXConversation_Direction)*arg5* completion:(void ( ^ ) ( BMXMessageListList *res , BMXError *aError ))*resBlock*

Parameters

keywords
搜索的关键字

refTime
搜索消息的起始时间

size
搜索的最大消息条数

result
搜索到的消息结果列表,外部初始化传入空列表。

Direction
消息搜索方向,默认(Direction::Up)是从更早的消息中搜索

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

searchMessagesByKeyWordsWithKeywords:refTime:size:completion:

- (void)searchMessagesByKeyWordsWithKeywords:(NSString *)*keywords* refTime:(long long)*refTime* size:(unsigned long)*size* completion:(void ( ^ ) ( BMXMessageListList *res , BMXError *aError ))*resBlock*

Example:

searchMessagesByKeyWordsWithKeywords:refTime:size:result:

- (BMXErrorCode)searchMessagesByKeyWordsWithKeywords:(NSString *)*keywords* refTime:(long long)*refTime* size:(unsigned long)*size* result:(BMXMessageListList *)*result*

Example:

searchMessagesByKeyWordsWithKeywords:refTime:size:result:arg5:

使用关键字搜索消息

- (BMXErrorCode)searchMessagesByKeyWordsWithKeywords:(NSString *)*keywords* refTime:(long long)*refTime* size:(unsigned long)*size* result:(BMXMessageListList *)*result* arg5:(BMXConversation_Direction)*arg5*

Parameters

keywords
搜索的关键字

refTime
搜索消息的起始时间

size
搜索的最大消息条数

result
搜索到的消息结果列表,外部初始化传入空列表。

Direction
消息搜索方向,默认(Direction::Up)是从更早的消息中搜索

Return Value

BMXErrorCode

Declared In

  • floo_proxy.h

Example:

sendMessageWithMsg:

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

- (void)sendMessageWithMsg:(BMXMessage *)*msg*

Parameters

msg
发送的消息

Declared In

  • floo_proxy.h

Example:

sendMessageWithMsg:completion:

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

- (void)sendMessageWithMsg:(BMXMessage *)*msg* completion:(void ( ^ ) ( BMXError *aError ))*resBlock*

Parameters

msg
发送的消息

Declared In

  • floo_proxy.h

Example:

transferingNum

上传或下载中的文件数

- (int)transferingNum

Return Value

int

Declared In

  • floo_proxy.h

Example:

© 2019-2024 美信拓扑 | 官网 | 网站地图 该文件修订时间: 2024-09-26 03:17:35

results matching ""

    No results matching ""