onError property

(void Function(String msgId, EMMessage msg, EMError error)?) onError
final

~english Occurs when a message fails to be sent or downloaded.

Param msgId The pre-sending message ID or the ID of the message that fails to be downloaded.

Param msg The message that fails to be sent or downloaded. ~end

~chinese 消息发送或下载失败回调。

Param msgId 发送前或下载失败的消息 ID。

Param msg 发送或下载失败的消息。 ~end

Implementation

final void Function(String msgId, EMMessage msg, EMError error)? onError;