EMChatManagerListener class

The message event listener.

This listener is used to check whether messages are received. If messages are sent successfully, a delivery receipt will be returned (delivery receipt needs to be enabled: EMOptions.requireDeliveryAck. If the peer reads the received message, a read receipt will be returned (read receipt needs to be enabled: EMOptions.requireAck. During message delivery, the message ID will be changed from a local uuid to a global unique ID that is generated by the server to uniquely identify a message on all devices using the SDK. This API should be implemented in the app to listen for message status changes.

Adds the message listener:

  EMClient.getInstance.chatManager.addChatManagerListener(listener);

Removes the message listener:

  EMClient.getInstance.chatManager.removeChatManagerListener(listener);
Annotations
  • @Deprecated("Use EMChatEventHandler to instead")

Constructors

EMChatManagerListener()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCmdMessagesReceived(List<EMMessage> messages) → void
Occurs when a command message is received.
onConversationRead(String from, String to) → void
Occurs when a conversation read receipt is received.
onConversationsUpdate() → void
Occurs when the conversation updated.
onGroupMessageRead(List<EMGroupMessageAck> groupMessageAcks) → void
Occurs when a read receipt is received for a group message.
onMessageReactionDidChange(List<EMMessageReactionEvent> list) → void
Occurs when the Reaction data changes.
onMessagesDelivered(List<EMMessage> messages) → void
Occurs when a delivery receipt is received.
onMessagesRead(List<EMMessage> messages) → void
Occurs when a read receipt is received for a message.
onMessagesRecalled(List<EMMessage> messages) → void
Occurs when a received message is recalled.
onMessagesReceived(List<EMMessage> messages) → void
Occurs when a message is received.
onReadAckForGroupMessageUpdated() → void
Occurs when the update for the group message read status is received.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited