ChatManagerListener 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: ChatOptions.requireDeliveryAck. If the peer reads the received message, a read receipt will be returned (read receipt needs to be enabled: ChatOptions.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:
ChatClient.getInstance.chatManager.addChatManagerListener(listener);
Removes the message listener:
ChatClient.getInstance.chatManager.removeChatManagerListener(listener);
- Annotations
-
- @Deprecated("Use ChatEventHandler to instead")
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
onCmdMessagesReceived(
List< ChatMessage> 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< ChatGroupMessageAck> groupMessageAcks) → void - Occurs when a read receipt is received for a group message.
-
onMessageReactionDidChange(
List< ChatMessageReactionEvent> list) → void - Occurs when the Reaction data changes.
-
onMessagesDelivered(
List< ChatMessage> messages) → void - Occurs when a delivery receipt is received.
-
onMessagesRead(
List< ChatMessage> messages) → void - Occurs when a read receipt is received for a message.
-
onMessagesRecalled(
List< ChatMessage> messages) → void - Occurs when a received message is recalled.
-
onMessagesReceived(
List< ChatMessage> 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