EMChatEventHandler constructor
- {void onMessagesReceived( )?,
- void onCmdMessagesReceived( )?,
- void onMessagesRead( )?,
- void onGroupMessageRead(
- List<
EMGroupMessageAck> groupMessageAcks
- List<
- VoidCallback? onReadAckForGroupMessageUpdated,
- void onMessagesDelivered( )?,
- void onMessagesRecalled( )?,
- VoidCallback? onConversationsUpdate,
- void onConversationRead( )?,
- void onMessageReactionDidChange(
- List<
EMMessageReactionEvent> events
- List<
- void onMessageContentChanged( )?,
- void onMessagePinChanged(
- String messageId,
- String conversationId,
- MessagePinOperation pinOperation,
- MessagePinInfo pinInfo
- void onMessagesRecalledInfo( )?}
消息事件监听。
Param onMessagesReceived 在收到文本、图片、视频、语音、地理位置和文件等消息时,通过此回调通知用户。
Param onCmdMessagesReceived 收到命令消息回调。
Param onMessagesRead 收到单聊消息已读回执的回调。
Param onGroupMessageRead 收到群组消息的已读回执的回调。
Param onReadAckForGroupMessageUpdated 群消息已读变更。
Param onMessagesDelivered 收到消息已送达回执的回调。
Param onMessagesRecalled 已收到的消息被撤回的回调。
Param onConversationsUpdate 会话更新事件回调。
Param onConversationRead 收到会话已读回执的回调。
Param onMessageReactionDidChange 消息表情回复(Reaction)变化监听器。
Param onMessageContentChanged 收到消息内容变化。
Param onMessagePinChanged 消息置顶状态变化。
Param onMessagesRecalledInfo 已收到的消息被撤回的回调。
Implementation
EMChatEventHandler(
{this.onMessagesReceived,
this.onCmdMessagesReceived,
this.onMessagesRead,
this.onGroupMessageRead,
this.onReadAckForGroupMessageUpdated,
this.onMessagesDelivered,
this.onMessagesRecalled,
this.onConversationsUpdate,
this.onConversationRead,
this.onMessageReactionDidChange,
this.onMessageContentChanged,
this.onMessagePinChanged,
this.onMessagesRecalledInfo});