onMessagesReceived property

(void Function(List<ChatMessage> messages)?) onMessagesReceived
final

~english Occurs when a message is received.

This callback is triggered to notify the user when a message such as texts or an image, video, voice, location, or file is received. ~end

~chinese 收到消息回调。 在收到文本、图片、视频、语音、地理位置和文件等消息时,通过此回调通知用户。 ~end

Implementation

final void Function(List<ChatMessage> messages)? onMessagesReceived;