EMChatManagerListener class Null safety

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: {@link EMOptions#requireDeliveryAck(boolean)}. If the peer reads the received message, a read receipt will be returned (read receipt needs to be enabled: {@link EMOptions#requireAck(boolean)}) 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);

Constructors

EMChatManagerListener()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
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. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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