ChatEventHandler constructor
- {void onMessagesReceived(
- List<
ChatMessage> messages
- List<
- void onCmdMessagesReceived(
- List<
ChatMessage> messages
- List<
- void onMessagesRead(
- List<
ChatMessage> messages
- List<
- void onGroupMessageRead(
- List<
ChatGroupMessageAck> groupMessageAcks
- List<
- VoidCallback? onReadAckForGroupMessageUpdated,
- void onMessagesDelivered(
- List<
ChatMessage> messages
- List<
- void onMessagesRecalled(
- List<
ChatMessage> messages
- List<
- VoidCallback? onConversationsUpdate,
- void onConversationRead( )?,
- void onMessageReactionDidChange(
- List<
ChatMessageReactionEvent> events
- List<
- void onMessageContentChanged(
- ChatMessage message,
- String operatorId,
- int operationTime
The chat event handler.
Param onMessagesReceived Occurs when a message is received.
Param onCmdMessagesReceived Occurs when a command message is received.
Param onMessagesRead Occurs when a read receipt is received for a one-to-one message.
Param onGroupMessageRead Occurs when a read receipt is received for a group message.
Param onReadAckForGroupMessageUpdated Occurs when the group message read status is received.
Param onMessagesDelivered Occurs when a delivery receipt is received.
Param onMessagesRecalled Occurs when a received message is recalled.
Param onConversationsUpdate Occurs when a conversation is updated.
Param onConversationRead Occurs when a conversation read receipt is received.
Param onMessageReactionDidChange Occurs when the Reaction data changes.
Param onMessageContentChanged Occurs when the message content is modified.
Implementation
ChatEventHandler({
this.onMessagesReceived,
this.onCmdMessagesReceived,
this.onMessagesRead,
this.onGroupMessageRead,
this.onReadAckForGroupMessageUpdated,
this.onMessagesDelivered,
this.onMessagesRecalled,
this.onConversationsUpdate,
this.onConversationRead,
this.onMessageReactionDidChange,
this.onMessageContentChanged,
});