EMChatRoomEventHandler constructor
- {void onAdminAddedFromChatRoom( )?,
- void onAdminRemovedFromChatRoom( )?,
- void onAllChatRoomMemberMuteStateChanged( )?,
- void onAllowListAddedFromChatRoom( )?,
- void onAllowListRemovedFromChatRoom( )?,
- void onAnnouncementChangedFromChatRoom( )?,
- void onChatRoomDestroyed( )?,
- void onMemberExitedFromChatRoom( )?,
- void onMemberJoinedFromChatRoom( )?,
- void onMuteListAddedFromChatRoom( )?,
- void onMuteListRemovedFromChatRoom( )?,
- void onOwnerChangedFromChatRoom( )?,
- void onRemovedFromChatRoom(
- String roomId,
- String? roomName,
- String? participant,
- LeaveReason? reason
- void onSpecificationChanged(
- EMChatRoom room
- void onAttributesUpdated( )?,
- void onAttributesRemoved( )?}
聊天室事件监听。
Param onAdminAddedFromChatRoom 有成员设置为聊天室管理员的回调。
Param onAdminRemovedFromChatRoom 移除聊天室管理员权限的回调。
Param onAllChatRoomMemberMuteStateChanged 聊天室全员禁言状态变化回调。
Param onAllowListAddedFromChatRoom 有成员被加入聊天室白名单的回调。
Param onAllowListRemovedFromChatRoom 有成员被移出聊天室白名单的回调。
Param onAnnouncementChangedFromChatRoom 聊天室公告更新回调。
Param onChatRoomDestroyed 聊天室解散的回调。
Param onMemberExitedFromChatRoom 聊天室成员主动退出回调。
Param onMemberJoinedFromChatRoom 聊天室加入新成员回调。
Param onMuteListAddedFromChatRoom 有成员被禁言回调。
Param onMuteListRemovedFromChatRoom 有成员从禁言列表中移除回调。
Param onOwnerChangedFromChatRoom 转移聊天室的所有权的回调。
Param onRemovedFromChatRoom 聊天室成员被移出聊天室回调。
Param onSpecificationChanged 聊天室详情变更。
Param onAttributesUpdated 聊天室属性变更。
Param onAttributesRemoved 聊天室属性被删除。
Implementation
EMChatRoomEventHandler({
this.onAdminAddedFromChatRoom,
this.onAdminRemovedFromChatRoom,
this.onAllChatRoomMemberMuteStateChanged,
this.onAllowListAddedFromChatRoom,
this.onAllowListRemovedFromChatRoom,
this.onAnnouncementChangedFromChatRoom,
this.onChatRoomDestroyed,
this.onMemberExitedFromChatRoom,
this.onMemberJoinedFromChatRoom,
this.onMuteListAddedFromChatRoom,
this.onMuteListRemovedFromChatRoom,
this.onOwnerChangedFromChatRoom,
this.onRemovedFromChatRoom,
this.onSpecificationChanged,
this.onAttributesUpdated,
this.onAttributesRemoved,
});