Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ChatRoomEventListener

export notify

Hierarchy

  • ChatRoomEventListener

Index

Methods

  • onAdminAdded(params: { admin: string; roomId: string }): void
  • Occurs when a chat room member is set as an admin. The member set as the chat room admin receives this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [admin] The user ID of the member who is set as an admin.

    Parameters

    • params: { admin: string; roomId: string }
      • admin: string
      • roomId: string

    Returns void

  • onAdminRemoved(params: { admin: string; roomId: string }): void
  • Occurs when the chat room member(s) is/are removed from the admin list. The admin removed from the admin list receives this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [admin] The user ID of the admin whose administrative privileges are removed.

    Parameters

    • params: { admin: string; roomId: string }
      • admin: string
      • roomId: string

    Returns void

  • onAllChatRoomMemberMuteStateChanged(params: { isAllMuted: boolean; roomId: string }): void
  • Occurs when all members in the chat room are muted or unmuted. All chat room members receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [isAllMuted] Whether all chat room members are muted.
      • true: Yes.
      • false: No.

    Parameters

    • params: { isAllMuted: boolean; roomId: string }
      • isAllMuted: boolean
      • roomId: string

    Returns void

  • onAllowListAdded(params: { members: string[]; roomId: string }): void
  • Occurs when the chat room member(s) is/are added to the allow list. The members added to the allow list receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [members] The member(s) added to the allow list of the chat room.

    Parameters

    • params: { members: string[]; roomId: string }
      • members: string[]
      • roomId: string

    Returns void

  • onAllowListRemoved(params: { members: string[]; roomId: string }): void
  • Occurs when the chat room member(s) is/are removed from the allow list. The members that are removed from the allow list receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [members] The member(s) removed from the allow list of the chat room.

    Parameters

    • params: { members: string[]; roomId: string }
      • members: string[]
      • roomId: string

    Returns void

  • onAnnouncementChanged(params: { announcement: string; roomId: string }): void
  • Occurs when the chat room announcement changes. All chat room members receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [announcement] The new announcement.

    Parameters

    • params: { announcement: string; roomId: string }
      • announcement: string
      • roomId: string

    Returns void

  • onAttributesRemoved(params: { from: string; removedKeys: string[]; roomId: string }): void
  • The custom chat room attribute(s) is/are removed. All chat room members receive this event.

    params

    params

    • roomId: The chat room ID.
    • removedKeys: The key list of custom chat room attributes that are removed.
    • from: The user ID of the operator.

    Parameters

    • params: { from: string; removedKeys: string[]; roomId: string }
      • from: string
      • removedKeys: string[]
      • roomId: string

    Returns void

  • onAttributesUpdated(params: { attributes: Map<string, string>; from: string; roomId: string }): void
  • The custom chat room attribute(s) is/are updated. All chat room members receive this event.

    params

    params

    • roomId: The chat room ID.
    • attributes: The list of custom chat room attributes (key-value) that are updated.
    • from: The user ID of the operator.

    Parameters

    • params: { attributes: Map<string, string>; from: string; roomId: string }
      • attributes: Map<string, string>
      • from: string
      • roomId: string

    Returns void

  • onDestroyed(params: { roomId: string; roomName?: string }): void
  • Occurs when the chat room is destroyed. All chat room members receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [roomName] The name of the chat room.

    Parameters

    • params: { roomId: string; roomName?: string }
      • roomId: string
      • Optional roomName?: string

    Returns void

  • onMemberExited(params: { participant: string; roomId: string; roomName?: string }): void
  • Occurs when a member exits the chat room. All chat room members, except the member exiting the chat room, receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [participant] The user ID of the member who leaves the chat room.

    Parameters

    • params: { participant: string; roomId: string; roomName?: string }
      • participant: string
      • roomId: string
      • Optional roomName?: string

    Returns void

  • onMemberJoined(params: { participant: string; roomId: string }): void
  • Occurs when a member joins the chat room. All chat room members, except the new member, receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [participant] The user ID of the new member.

    Parameters

    • params: { participant: string; roomId: string }
      • participant: string
      • roomId: string

    Returns void

  • onMemberRemoved(params: { participant?: string; reason?: string; roomId: string; roomName?: string }): void
  • Occurs when a member is removed from a chat room. The member that is kicked out of the chat room receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [roomName] The name of the chat room.
    • Param [participant] The user ID of the member that is removed from a chat room.
    • Param [reason] Reason for removal.

    Parameters

    • params: { participant?: string; reason?: string; roomId: string; roomName?: string }
      • Optional participant?: string
      • Optional reason?: string
      • roomId: string
      • Optional roomName?: string

    Returns void

  • onMuteListAdded(params: { expireTime?: string; mutes: string[]; roomId: string }): void
  • Occurs when the chat room member(s) is/are added to the mute list. The muted members receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [mutes] The user ID(s) of muted member(s).
    • Param [expireTime] Reserved parameter. The Unix timestamp when the mute duration expires.

    Parameters

    • params: { expireTime?: string; mutes: string[]; roomId: string }
      • Optional expireTime?: string
      • mutes: string[]
      • roomId: string

    Returns void

  • onMuteListRemoved(params: { mutes: string[]; roomId: string }): void
  • Occurs when the chat room member(s) is/are removed from the mute list. The members that are removed from the mute list receive this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [mutes] The user ID(s) of unmuted member(s).

    Parameters

    • params: { mutes: string[]; roomId: string }
      • mutes: string[]
      • roomId: string

    Returns void

  • onOwnerChanged(params: { newOwner: string; oldOwner: string; roomId: string }): void
  • Occurs when the chat room owner is changed. The chat room owner receives this event.

    params

    The parameter set.

    • Param [roomId] The chat room ID.
    • Param [newOwner] The user ID of the new chat room owner.
    • Param [oldOwner] The user ID of the previous chat room owner.

    Parameters

    • params: { newOwner: string; oldOwner: string; roomId: string }
      • newOwner: string
      • oldOwner: string
      • roomId: string

    Returns void

  • onSpecificationChanged(room: ChatRoom): void
  • Occurs when the chat room specifications changes. All chat room members receive this event.

    Parameters

    Returns void

Generated using TypeDoc