ChatManagerDefault class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
addEventHandler (String identifier , EMChatEventHandler handler )
→ void
~english
Adds the chat event handler. After calling this method, you can handle for chat event when they arrive.
inherited
addMessageEvent (String identifier , ChatMessageEvent event )
→ void
~english
Adds a message status listener.
inherited
addReaction ({required String messageId , required String reaction })
→ Future <void >
~english
Adds a Reaction.
inherited
addRemoteAndLocalConversationsMark ({required List <String > conversationIds , required ConversationMarkType mark })
→ Future <void >
~english
Marks conversations.
inherited
clearEventHandlers ()
→ void
~english
Clear all chat event handlers.
~end
inherited
clearMessageEvent ()
→ void
~english
Clears all message status listeners.
~end
inherited
deleteAllMessageAndConversation ({bool clearServerData = false })
→ Future <void >
~english
Clears all conversations and all messages in them.
Param clearServerData
Whether to clear all conversations and all messages in them on the server.
inherited
deleteConversation (String conversationId , {bool deleteMessages = true })
→ Future <bool >
~english
Deletes a conversation and its related messages from the local database.
inherited
deleteMessagesBefore (int timestamp )
→ Future <void >
~english
Deletes messages with the timestamp that is before the specified one.
inherited
deleteRemoteAndLocalConversationsMark ({required List <String > conversationIds , required ConversationMarkType mark })
→ Future <void >
~english
Unmarks conversations.
inherited
deleteRemoteConversation (String conversationId , {EMConversationType conversationType = EMConversationType.Chat , bool isDeleteMessage = true })
→ Future <void >
~english
Deletes the specified conversation and the related historical messages from the server.
inherited
deleteRemoteMessagesBefore ({required String conversationId , required EMConversationType type , required int timestamp })
→ Future <void >
~english
Unidirectionally removes historical message by timestamp from the server.
inherited
deleteRemoteMessagesWithIds ({required String conversationId , required EMConversationType type , required List <String > msgIds })
→ Future <void >
~english
Unidirectionally removes historical message by message ID from the server.
inherited
downloadAttachment (EMMessage message )
→ Future <void >
~english
Downloads the attachment files from the server.
inherited
downloadMessageAttachmentInCombine (EMMessage message )
→ Future <void >
~english
Downloads the attachment files from the server.
inherited
downloadMessageThumbnailInCombine (EMMessage message )
→ Future <void >
~english
Downloads the thumbnail if the message has not been downloaded before or if the download fails.
inherited
downloadThumbnail (EMMessage message )
→ Future <void >
~english
Downloads the thumbnail if the message has not been downloaded before or if the download fails.
inherited
fetchCombineMessageDetail ({required EMMessage message })
→ Future <List <EMMessage > >
~english
Gets the details of a combined message.
inherited
fetchConversation ({String ? cursor , int pageSize = 20 })
→ Future <EMCursorResult <EMConversation > >
~english
Get the list of conversations from the server with pagination.
inherited
fetchConversationListFromServer ({int pageNum = 1 , int pageSize = 20 })
→ Future <List <EMConversation > >
~english
Gets the list of conversations from the server.
inherited
fetchConversationsByOptions ({required ConversationFetchOptions options })
→ Future <EMCursorResult <EMConversation > >
~english
Gets conversations from the server by conversation filter options.
inherited
fetchGroupAcks (String msgId , String groupId , {String ? startAckId , int pageSize = 0 })
→ Future <EMCursorResult <EMGroupMessageAck > >
~english
Gets read receipts for group messages from the server with pagination.
inherited
fetchHistoryMessages ({required String conversationId , EMConversationType type = EMConversationType.Chat , int pageSize = 20 , EMSearchDirection direction = EMSearchDirection.Up , String startMsgId = '' })
→ Future <EMCursorResult <EMMessage > >
~english
Gets historical messages of the conversation from the server with pagination.
inherited
fetchHistoryMessagesByOption (String conversationId , EMConversationType type , {FetchMessageOptions ? options , String ? cursor , int pageSize = 50 })
→ Future <EMCursorResult <EMMessage > >
~english
Gets historical messages of a conversation from the server according to FetchMessageOptions .
inherited
fetchPinnedConversations ({String ? cursor , int pageSize = 20 })
→ Future <EMCursorResult <EMConversation > >
~english
Gets the list of pinned conversations from the server with pagination.
inherited
fetchPinnedMessages ({required String conversationId })
→ Future <List <EMMessage > >
~english
Gets the list of pinned messages from the server.
inherited
fetchReactionDetail ({required String messageId , required String reaction , String ? cursor , int pageSize = 20 })
→ Future <EMCursorResult <EMMessageReaction > >
~english
Gets the Reaction details.
inherited
fetchReactionList ({required List <String > messageIds , required ChatType chatType , String ? groupId })
→ Future <Map <String , List <EMMessageReaction > > >
~english
Gets the list of Reactions.
inherited
fetchSupportedLanguages ()
→ Future <List <EMTranslateLanguage > >
~english
Gets all languages supported by the translation service.
inherited
getAllMessageCount ()
→ Future <int >
inherited
getConversation (String conversationId , {EMConversationType type = EMConversationType.Chat , bool createIfNeed = true })
→ Future <EMConversation ? >
~english
Gets the conversation by conversation ID and conversation type.
inherited
getConversationsFromServer ()
→ Future <List <EMConversation > >
~english
Gets the conversation list from the server.
inherited
getEventHandler (String identifier )
→ EMChatEventHandler ?
~english
Get the chat event handler.
inherited
getThreadConversation (String threadId )
→ Future <EMConversation ? >
~english
Gets the thread conversation by thread ID.
inherited
getUnreadMessageCount ()
→ Future <int >
~english
Gets the count of the unread messages.
inherited
importMessages (List <EMMessage > messages )
→ Future <void >
~english
Imports messages to the local database.
inherited
initHandler ()
→ void
inherited
loadAllConversations ()
→ Future <List <EMConversation > >
~english
Gets all conversations from the local database.
inherited
loadMessage (String messageId )
→ Future <EMMessage ? >
~english
Loads a message from the local database by message ID.
inherited
loadMessagesWithKeyword (String keywords , {String ? sender , int timestamp = -1 , int count = 20 , MessageSearchScope searchScope = MessageSearchScope.All , EMSearchDirection direction = EMSearchDirection.Up })
→ Future <List <EMMessage > >
~english
Loads messages from the local database by the following parameters: keywords, timestamp, the number of messages to retrieve, message sender, search scope, and search direction.
inherited
markAllConversationsAsRead ()
→ Future <void >
~english
Marks all conversations as read.
inherited
modifyMessage ({required String messageId , EMMessageBody ? msgBody , Map <String , dynamic > ? attributes })
→ Future <EMMessage >
~english
Modifies a message.
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pinConversation ({required String conversationId , required bool isPinned })
→ Future <void >
~english
Sets whether to pin a conversation.
inherited
pinMessage ({required String messageId })
→ Future <void >
~english
Pins a message.
Param messageId
The message ID.
inherited
recallMessage (String messageId , {String ? ext })
→ Future <void >
~english
Recalls the sent message.
inherited
removeEventHandler (String identifier )
→ void
~english
Remove the chat event handler.
inherited
removeMessageEvent (String identifier )
→ void
~english
Removes a message status listener.
inherited
removeReaction ({required String messageId , required String reaction })
→ Future <void >
~english
Deletes a Reaction.
inherited
reportMessage ({required String messageId , required String tag , required String reason })
→ Future <void >
~english
Reports an inappropriate message.
inherited
resendMessage (EMMessage message )
→ Future <EMMessage >
~english
Resends a message.
inherited
searchMsgFromDB (String keywords , {int timestamp = -1 , int maxCount = 20 , String from = '' , EMSearchDirection direction = EMSearchDirection.Up })
→ Future <List <EMMessage > >
~english
Retrieves messages from the database according to the parameters.
inherited
searchMsgsByOptions (MessageSearchOptions options )
→ Future <List <EMMessage > >
~english
Loads messages with the specified keyword from the local database.
inherited
sendConversationReadAck (String conversationId )
→ Future <void >
~english
Sends the conversation read receipt to the server. This method is only for one-to-one chat conversations.
inherited
sendGroupMessageReadAck (String msgId , String groupId , {String ? content })
→ Future <void >
~english
Sends the group message receipt to the server.
inherited
sendMessage (EMMessage message )
→ Future <EMMessage >
~english
Sends a message.
inherited
sendMessageReadAck (EMMessage message )
→ Future <bool >
~english
Sends the read receipt to the server.
inherited
toString ()
→ String
A string representation of this object.
inherited
translateMessage ({required EMMessage msg , required List <String > languages })
→ Future <EMMessage >
~english
Translates a text message.
inherited
unpinMessage ({required String messageId })
→ Future <void >
~english
Unpins a message.
inherited
updateMessage (EMMessage message )
→ Future <void >
~english
Updates the local message.
inherited
im_flutter_sdk_interface 4.13.0+1