Interface ChatRoomEventListener
Methods
Optional
onAdminAdded
- onAdminAdded(params): void
Parameters
- params: {
admin: string;
roomId: string;
}admin: string
roomId: string
Returns void
Optional
onAdminRemoved
- onAdminRemoved(params): void
Parameters
- params: {
admin: string;
roomId: string;
}admin: string
roomId: string
Returns void
Optional
onAllChatRoomMemberMuteStateChanged
- onAllChatRoomMemberMuteStateChanged(params): void
Parameters
- params: {
isAllMuted: boolean;
roomId: string;
}isAllMuted: boolean
roomId: string
Returns void
Optional
onAllowListAdded
- onAllowListAdded(params): void
Parameters
- params: {
members: string[];
roomId: string;
}members: string[]
roomId: string
Returns void
Optional
onAllowListRemoved
- onAllowListRemoved(params): void
Parameters
- params: {
members: string[];
roomId: string;
}members: string[]
roomId: string
Returns void
Optional
onAnnouncementChanged
- onAnnouncementChanged(params): void
Parameters
- params: {
announcement: string;
roomId: string;
}announcement: string
roomId: string
Returns void
Optional
onAttributesRemoved
- onAttributesRemoved(params): void
Parameters
- params: {
from: string;
removedKeys: string[];
roomId: string;
}from: string
removedKeys: string[]
roomId: string
Returns void
Optional
onAttributesUpdated
- onAttributesUpdated(params): 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): void
Parameters
- params: {
roomId: string;
roomName?: string;
}roomId: string
Optional
roomName?: string
Returns void
Optional
onMemberExited
- onMemberExited(params): void
Parameters
- params: {
participant: string;
roomId: string;
roomName?: string;
}participant: string
roomId: string
Optional
roomName?: string
Returns void
Optional
onMemberJoined
- onMemberJoined(params): void
Parameters
- params: {
participant: string;
roomId: string;
}participant: string
roomId: string
Returns void
Optional
onMemberRemoved
- onMemberRemoved(params): 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): void
Parameters
- params: {
expireTime?: string;
mutes: string[];
roomId: string;
}Optional
expireTime?: string
mutes: string[]
roomId: string
Returns void
Optional
onMuteListRemoved
- onMuteListRemoved(params): void
Parameters
- params: {
mutes: string[];
roomId: string;
}mutes: string[]
roomId: string
Returns void
Optional
onOwnerChanged
- onOwnerChanged(params): void
Parameters
- params: {
newOwner: string;
oldOwner: string;
roomId: string;
}newOwner: string
oldOwner: string
roomId: string
Returns void
Optional
onSpecificationChanged
- onSpecificationChanged(room): void
Returns void
The chat room event listener.