ChatRoomEventHandler 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(
- ChatRoom room
- void onAttributesUpdated()?,
- void onAttributesRemoved()?,
~english The chat room manager listener callback.
Param onAdminAddedFromChatRoom A member is changed to be an admin.
Param onAdminRemovedFromChatRoom An admin is been removed.
Param onAllChatRoomMemberMuteStateChanged All members in the chat room are muted or unmuted.
Param onAllowListAddedFromChatRoom The chat room member(s) is/are added to the allowlist.
Param onAllowListRemovedFromChatRoom The chat room member(s) is/are removed from the allowlist.
Param onAnnouncementChangedFromChatRoom The announcement is changed.
Param onChatRoomDestroyed The chat room is destroyed.
Param onMemberExitedFromChatRoom A member leaves the chat room.
Param onMemberJoinedFromChatRoom A user joins the chat room.
Param onMuteListAddedFromChatRoom The chat room member(s) is/are added to mute list.
Param onMuteListRemovedFromChatRoom The chat room member(s) is/are removed from mute list.
Param onOwnerChangedFromChatRoom The chat room ownership is transferred.
Param onRemovedFromChatRoom The chat room member(s) is/are removed from the allowlist.
Param onSpecificationChanged The chat room specification changed.
Param onAttributesUpdated The chat room attribute(s) is/are updated.
Param onAttributesRemoved The chat room attribute(s) is/are removed. ~end
~chinese 聊天室事件监听。
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 聊天室属性被删除。 ~end
Implementation
ChatRoomEventHandler({
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,
});