ChatMessageEvent class

~english The message status event class. 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 chat page widget to listen for message status changes. ~end

~chinese 消息状态事件类。 ~end

Constructors

ChatMessageEvent({void onSuccess(String msgId, EMMessage msg)?, void onError(String msgId, EMMessage msg, EMError error)?, void onProgress(String msgId, int progress)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
onError → (void Function(String msgId, EMMessage msg, EMError error)?)
~english Occurs when a message fails to be sent or downloaded.
final
onProgress → (void Function(String msgId, int progress)?)
~english Occurs when there is a progress for message upload or download. This event is triggered when a message is being uploaded or downloaded.
final
onSuccess → (void Function(String msgId, EMMessage msg)?)
~english Occurs when a message is successfully sent or downloaded.
final
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
toString() String
A string representation of this object.
inherited

Operators

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