Interface ChatRoomEventListener
Methods
Optional onAdminAdded
- onAdminAdded(params: { admin: string; roomId: string }): void
Parameters
params: { admin: string; roomId: string }
admin: string
roomId: string
Returns void
Optional onAdminRemoved
- onAdminRemoved(params: { admin: string; roomId: string }): void
Parameters
params: { admin: string; roomId: string }
admin: string
roomId: string
Returns void
Optional onAllChatRoomMemberMuteStateChanged
- onAllChatRoomMemberMuteStateChanged(params: { isAllMuted: boolean; roomId: string }): void
Parameters
params: { isAllMuted: boolean; roomId: string }
isAllMuted: boolean
roomId: string
Returns void
Optional onAllowListAdded
- onAllowListAdded(params: { members: string[]; roomId: string }): void
Parameters
params: { members: string[]; roomId: string }
members: string[]
roomId: string
Returns void
Optional onAllowListRemoved
- onAllowListRemoved(params: { members: string[]; roomId: string }): void
Parameters
params: { members: string[]; roomId: string }
members: string[]
roomId: string
Returns void
Optional onAnnouncementChanged
- onAnnouncementChanged(params: { announcement: string; roomId: string }): void
Parameters
params: { announcement: string; roomId: string }
announcement: string
roomId: string
Returns void
Optional onAttributesRemoved
- onAttributesRemoved(params: { from: string; removedKeys: string[]; roomId: string }): void
Parameters
params: { from: string; removedKeys: string[]; roomId: string }
from: string
removedKeys: string[]
roomId: string
Returns void
Optional onAttributesUpdated
- onAttributesUpdated(params: { attributes: Map<string, string>; from: string; roomId: string }): void
Parameters
params: { attributes: Map<string, string>; from: string; roomId: string }
attributes: Map<string, string>
from: string
roomId: string
Returns void
Optional onDestroyed
- onDestroyed(params: { roomId: string; roomName?: string }): void
Parameters
params: { roomId: string; roomName?: string }
roomId: string
Optional roomName?: string
Returns void
Optional onMemberExited
- onMemberExited(params: { participant: string; roomId: string; roomName?: string }): void
Parameters
params: { participant: string; roomId: string; roomName?: string }
participant: string
roomId: string
Optional roomName?: string
Returns void
Optional onMemberJoined
- onMemberJoined(params: { participant: string; roomId: string }): void
Parameters
params: { participant: string; roomId: string }
participant: string
roomId: string
Returns void
Optional onMemberRemoved
- onMemberRemoved(params: { participant?: string; reason?: string; roomId: string; roomName?: string }): void
Parameters
params: { participant?: string; reason?: string; roomId: string; roomName?: string }
Optional participant?: string
Optional reason?: string
roomId: string
Optional roomName?: string
Returns void
Optional onMuteListAdded
- onMuteListAdded(params: { expireTime?: string; mutes: string[]; roomId: string }): void
Parameters
params: { expireTime?: string; mutes: string[]; roomId: string }
Optional expireTime?: string
mutes: string[]
roomId: string
Returns void
Optional onMuteListRemoved
- onMuteListRemoved(params: { mutes: string[]; roomId: string }): void
Parameters
params: { mutes: string[]; roomId: string }
mutes: string[]
roomId: string
Returns void
Optional onOwnerChanged
- onOwnerChanged(params: { newOwner: string; oldOwner: string; roomId: string }): void
Parameters
params: { newOwner: string; oldOwner: string; roomId: string }
newOwner: string
oldOwner: string
roomId: string
Returns void
Optional onSpecificationChanged
- onSpecificationChanged(room: ChatRoom): void
export notify