LANYINGDevelopers
Web & Mini ProgramiOSAndroidC++Server API

BMXChatService Class Reference#

Inherits from NSObject
Declared in floo_proxy.h

Overview#

@interface Chat Service

Properties#

swigCMemOwn#

@property (nonatomic) BOOL swigCMemOwn

swigCPtr#

@property (nonatomic) void *swigCPtr

Instance Methods#

ackMessageDeliveredWithMsg:#

Send delivery ACK

- (void)ackMessageDeliveredWithMsg:(BMXMessage )msg*

Discussion#

Send delivery ACK

Declared In#

  • floo_proxy.h


Example:

ackMessageDeliveredWithMsg:completion:#

Send delivery ACK

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

Discussion#

Send delivery ACK

Declared In#

  • floo_proxy.h


Example:

ackMessageWithMsg:#

Send read ACK

- (void)ackMessageWithMsg:(BMXMessage )msg*

Parameters#

msg
Message to be ACKed

Declared In#

  • floo_proxy.h


Example:

ackMessageWithMsg:completion:#

Send read ACK

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

Parameters#

msg
Message to be ACKed

Declared In#

  • floo_proxy.h


Example:

ackPlayMessageWithMsg:#

Send played ACK

- (void)ackPlayMessageWithMsg:(BMXMessage )msg*

Parameters#

msg
Message to be ACKed

Declared In#

  • floo_proxy.h


Example:

ackPlayMessageWithMsg:completion:#

Send played ACK

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

Parameters#

msg
Message to be ACKed

Declared In#

  • floo_proxy.h


Example:

addChatListener:#

Add a chat service listener

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

Discussion#

Add a chat service listener

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#

Get the directory where attachments saved

- (NSString *)attachmentDir

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

attachmentDirForConversationWithConversationId:#

Get the directory where attachments saved

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

Parameters#

conversationId
Conversation ID

Return Value#

NSString

Declared In#

  • floo_proxy.h


Example:

cancelDownloadAttachmentWithMsg:#

Cancel downloading attachments

- (void)cancelDownloadAttachmentWithMsg:(BMXMessage )msg*

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

cancelDownloadAttachmentWithMsg:completion:#

Cancel downloading attachments

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

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

cancelUploadAttachmentWithMsg:#

Cancel uploading attachments

- (void)cancelUploadAttachmentWithMsg:(BMXMessage )msg*

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

cancelUploadAttachmentWithMsg:completion:#

Cancel uploading attachments

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

Parameters#

msg
The message

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

Delete conversation

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

Parameters#

conversationId
Conversation ID

synchronize
Whether delete conversations on other devices in the mean time or not, default to false

Declared In#

  • floo_proxy.h


Example:

deleteConversationWithConversationId:synchronize:completion:#

Delete conversation

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

Parameters#

conversationId
Conversation ID

synchronize
Whether delete conversations on other devices in the mean time or not, default to false

Declared In#

  • floo_proxy.h


Example:

downloadAttachmentByUrlWithMsgId:url:path:#

Download attachments, notify changes in download status and progress through the listener

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

Discussion#

Download attachments(Download status and progress callbacked by the listener)

Declared In#

  • floo_proxy.h


Example:

downloadAttachmentByUrlWithMsgId:url:path:completion:#

Download attachments(Download status and progress callbacked by the listener)

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

Discussion#

Download attachments(Download status and progress callbacked by the listener)

Declared In#

  • floo_proxy.h


Example:

downloadAttachmentWithMsg:#

Download attachments(Download status and progress callbacked by the listener)

- (void)downloadAttachmentWithMsg:(BMXMessage )msg*

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

downloadAttachmentWithMsg:completion:#

Download attachments(Download status and progress callbacked by the listener)

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

Parameters#

msg
The message

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

Download attachments(Download status and progress callbacked by the listener)
Thumbnail generation strategy, 1- generated by third-party servers, 2- generated by local servers, default value is 1

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

Parameters#

msg
The message

strategy
Thumbnail generation strategy, 1- generated by third-party servers, 2- generated by local servers, default value is 1.

Declared In#

  • floo_proxy.h


Example:

downloadThumbnailWithMsg:strategy:completion:#

Download attachments
Thumbnail generation strategy, 1- generated by third-party servers, 2- generated by local servers, default value is 1.

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

Parameters#

msg
The message

strategy
Thumbnail generation strategy, 1- generated by third-party servers, 2- generated by local servers, default value is 1.

Declared In#

  • floo_proxy.h


Example:

forwardMessageWithList:to:newMsg:#

Merge and forward messages

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

Parameters#

list
The message list

to
Destination conversation

newMsg
The new message generated from message list to be forwarded

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

forwardMessageWithMsg:#

Forward a single message,you should useBMXMessage::createForwardMessage()create the new message first.

- (void)forwardMessageWithMsg:(BMXMessage )msg*

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

forwardMessageWithMsg:completion:#

Forward a single message,you should useBMXMessage::createForwardMessage()create the new message first.

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

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

getAllConversations#

Get all conversations

- (BMXConversationList *)getAllConversations

Return Value#

BMXConversationList

Declared In#

  • floo_proxy.h


Example:

getAllConversationsUnreadCount#

Get unread number for all conversations(Exclude blocked users and groups)

- (int)getAllConversationsUnreadCount

Return Value#

int

Declared In#

  • floo_proxy.h


Example:

getAllConversationsWithCompletion:#

Get all conversations

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

Return Value#

BMXConversationList

Declared In#

  • floo_proxy.h


Example:

getGroupAckMessageUnreadUserIdList:completion:#

Get group member ID list who have not read the group message

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

Parameters#

msg
The message

groupMemberIdList
Member ID list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getGroupAckMessageUnreadUserIdList:groupMemberIdList:#

Get group member ID list who have not read the group message

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

Parameters#

msg
The message

groupMemberIdList
Member ID list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getGroupAckMessageUserIdList:completion:#

Get group member ID list who have not read the group message

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

Parameters#

msg
The message

groupMemberIdList
Member ID list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getGroupAckMessageUserIdList:groupMemberIdList:#

Get group member ID list who read the group message

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

Parameters#

msg
The message

groupMemberIdList
Member ID list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getGroupPlayAckMessageUserIdList:completion:#

Get group member ID list who played the media file in group message

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

Parameters#

msg
The message

groupMemberIdList
Member ID list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getGroupPlayAckMessageUserIdList:groupMemberIdList:#

Get group member ID list who played the media file in group message

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

Parameters#

msg
The message

groupMemberIdList
Member ID list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getGroupUnPlayAckMessageUserIdList:completion:#

Get group member ID list who have not played the media file in group message

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

Parameters#

msg
The message

groupMemberIdList
Member ID list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getGroupUnPlayAckMessageUserIdList:groupMemberIdList:#

Get group member ID list who have not played the media file in group message

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

Parameters#

msg
The message

groupMemberIdList
Member ID list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

getMessage:#

Get a message by ID

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

Parameters#

msgId
The message ID

Return Value#

BMXMessage

Declared In#

  • floo_proxy.h


Example:

initWithCptr:swigOwnCObject:#

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


Example:

insertMessagesWithList:#

Insert messages

- (BMXErrorCode)insertMessagesWithList:(BMXMessageList )list*

Parameters#

list
The message list

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

insertMessagesWithList:completion:#

Insert messages

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

Parameters#

list
The message 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:#

Open a conversation

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

Parameters#

conversationId
The conversation ID

type
Conversation type: Single or Group

createIfNotExist
Create if NOT exist

Return Value#

BMXConversation

Declared In#

  • floo_proxy.h


Example:

readAllMessageWithMsg:#

Mark this message and all previous messages as read and synchronize to all devices of the current user

- (void)readAllMessageWithMsg:(BMXMessage )msg*

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

readAllMessageWithMsg:completion:#

Mark this message and all previous messages as read and synchronize to all devices of the current user

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

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

readCancelWithMsg:#

Mark this message as unread and synchronize to all devices of the current user

- (void)readCancelWithMsg:(BMXMessage )msg*

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

readCancelWithMsg:completion:#

Mark this message as unread and synchronize to all devices of the current user

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

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

recallMessageWithMsg:#

Recall a message

- (void)recallMessageWithMsg:(BMXMessage )msg*

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

recallMessageWithMsg:completion:#

Recall a message

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

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

removeChatListener:#

Remove chat service listener

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

Discussion#

Remove chat service listener

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

Deletes the message and synchronises the deletion to the current user's other devices

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

Parameters#

msg
The message

synchronize
Whether or not to synchronize to all devices of the current user

Declared In#

  • floo_proxy.h


Example:

removeMessageWithMsg:synchronize:completion:#

Deletes the message and synchronises the deletion to the current user's other devices

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

Parameters#

msg
The message

synchronize
Whether or not to synchronize to all devices of the current user

Declared In#

  • floo_proxy.h


Example:

resendMessageWithMsg:#

Resend a message

- (void)resendMessageWithMsg:(BMXMessage )msg*

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

resendMessageWithMsg:completion:#

Resend a message

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

Parameters#

msg
The message

Declared In#

  • floo_proxy.h


Example:

retrieveHistoryMessagesWithConversation:refMsgId:size:completion:#

Message history retrieved

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

Parameters#

conversation
The conversation

refMsgId
First Message Id

size
Maximum number of messages

result
Message list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

retrieveHistoryMessagesWithConversation:refMsgId:size:result:#

Message history retrieved

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

Parameters#

conversation
The conversation

refMsgId
First Message Id

size
Maximum number of messages

result
Message list as result

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

searchMessagesByKeyWordsWithKeywords:refTime:size:arg5:completion:#

Search messages by keywords

- (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
The keywords

refTime
Starting time

size
Maximum number of messages

result
Message list as result

Direction
Search direction, Up for earlier

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

Search messages by keywords

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

Parameters#

keywords
The keywords

refTime
Starting time

size
Maximum number of messages

result
Message list as result

Direction
Search direction, Up for earlier

Return Value#

BMXErrorCode

Declared In#

  • floo_proxy.h


Example:

sendMessageWithMsg:#

Send a message

- (void)sendMessageWithMsg:(BMXMessage )msg*

Parameters#

msg
Message to send

Declared In#

  • floo_proxy.h


Example:

sendMessageWithMsg:completion:#

Send a message

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

Parameters#

msg
Message to send

Declared In#

  • floo_proxy.h


Example:

transferingNum#

Number of files in transfer

- (int)transferingNum

Return Value#

int

Declared In#

  • floo_proxy.h
Generated API content with concise AI notes where context helps.