Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ChatGroupEventListener

export notify

Hierarchy

  • ChatGroupEventListener

Index

Methods

  • onAdminAdded(params: { admin: string; groupId: string }): void
  • Occurs when a member is set as an admin.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [admin] The user ID of the member that is set as an admin.

    Parameters

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

    Returns void

  • onAdminRemoved(params: { admin: string; groupId: string }): void
  • Occurs when the administrative privileges of an admin are removed.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [admin] The user ID of the admin whose administrative privileges are removed.

    Parameters

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

    Returns void

  • onAllGroupMemberMuteStateChanged(params: { groupId: string; isAllMuted: boolean }): void
  • Occurs when all group members are muted or unmuted.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [isAllMuted] Whether all group members are muted.
      • true: Yes.
      • false: No.

    Parameters

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

    Returns void

  • onAllowListAdded(params: { groupId: string; members: string[] }): void
  • Occurs when one or more group members are added to the allow list.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [members] The user IDs of members that are added to the allow list of the group.

    Parameters

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

    Returns void

  • onAllowListRemoved(params: { groupId: string; members: string[] }): void
  • Occurs when one or more group members are removed from the allow list.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [members] The user IDs of members that are removed from the allow list of the group.

    Parameters

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

    Returns void

  • onAnnouncementChanged(params: { announcement: string; groupId: string }): void
  • Occurs when the group announcement is updated.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [announcement] The new announcement.

    Parameters

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

    Returns void

  • onAutoAcceptInvitation(params: { groupId: string; inviteMessage?: string; inviter: string }): void
  • Occurs when the group invitation is accepted automatically by the current user.

    For example, after user B invites user A to join the group, as user A sets ChatOptions.autoAcceptGroupInvitation to true, the invitee joins the group automatically and receives this callback.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [inviter] The user ID of the inviter.
    • Param [inviteMessage] The invitation message.

    Parameters

    • params: { groupId: string; inviteMessage?: string; inviter: string }
      • groupId: string
      • Optional inviteMessage?: string
      • inviter: string

    Returns void

  • onDestroyed(params: { groupId: string; groupName?: string }): void
  • Occurs when a group is destroyed.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [groupName] The group name.

    Parameters

    • params: { groupId: string; groupName?: string }
      • groupId: string
      • Optional groupName?: string

    Returns void

  • Occurs when the chat group detail change. All chat group members receive this event.

    Parameters

    Returns void

  • onInvitationAccepted(params: { groupId: string; invitee: string; reason?: string }): void
  • Occurs when a group invitation from the current user is accepted by the peer user.

    For example, after user B accepts a group invitation from user A, user A receives this callback.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [groupName] The group name.
    • Param [invitee] The user ID of the invitee.
    • Param [reason] The reason for accepting the group invitation.

    Parameters

    • params: { groupId: string; invitee: string; reason?: string }
      • groupId: string
      • invitee: string
      • Optional reason?: string

    Returns void

  • onInvitationDeclined(params: { groupId: string; invitee: string; reason?: string }): void
  • Occurs when a group invitation from the current user is declined by the peer user.

    For example, after user B declines a group invitation from user A, user A receives this callback.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [invitee] The user ID of the invitee.
    • Param [reason] The reason for accepting the group invitation.

    Parameters

    • params: { groupId: string; invitee: string; reason?: string }
      • groupId: string
      • invitee: string
      • Optional reason?: string

    Returns void

  • onInvitationReceived(params: { groupId: string; groupName: string; inviter: string; reason?: string }): void
  • Occurs when the current user receives a group invitation.

    For example, after user B sends user A a group invitation, user A receives this callback.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [groupName] The group name.
    • Param [inviter] The user ID of the inviter.
    • Param [reason] The reason for invitation.

    Parameters

    • params: { groupId: string; groupName: string; inviter: string; reason?: string }
      • groupId: string
      • groupName: string
      • inviter: string
      • Optional reason?: string

    Returns void

  • onMemberAttributesChanged(params: { attributes: any; groupId: string; member: string; operator: string }): void
  • Occurs when a custom attribute(s) of a group member is/are changed.

    params

    params

    • groupId: The group ID.
    • member: The group member.
    • attributes: The modified custom attributes, in key-value format.
    • operator: The user ID of the operator.

    Parameters

    • params: { attributes: any; groupId: string; member: string; operator: string }
      • attributes: any
      • groupId: string
      • member: string
      • operator: string

    Returns void

  • onMemberExited(params: { groupId: string; member: string }): void
  • Occurs when a member voluntarily leaves the group.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [member] The user ID of the member leaving the group.

    Parameters

    • params: { groupId: string; member: string }
      • groupId: string
      • member: string

    Returns void

  • onMemberJoined(params: { groupId: string; member: string }): void
  • Occurs when a user joins a group.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [member] The user ID of the new member.

    Parameters

    • params: { groupId: string; member: string }
      • groupId: string
      • member: string

    Returns void

  • onMemberRemoved(params: { groupId: string; groupName?: string }): void
  • Occurs when the current user is removed from the group.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [groupName] The group name.

    Parameters

    • params: { groupId: string; groupName?: string }
      • groupId: string
      • Optional groupName?: string

    Returns void

  • onMuteListAdded(params: { groupId: string; muteExpire?: number; mutes: string[] }): void
  • Occurs when one or more members are added to the mute list of the group.

    A user, when muted, can still see group messages, but cannot send messages in the group. However, a user on the block list can neither see nor send group messages.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [mutes] The user ID(s) of member(s) that are muted.
    • Param [muteExpire] Reserved parameter. The Unix timestamp when the mute expires. The unit is millisecond.

    Parameters

    • params: { groupId: string; muteExpire?: number; mutes: string[] }
      • groupId: string
      • Optional muteExpire?: number
      • mutes: string[]

    Returns void

  • onMuteListRemoved(params: { groupId: string; mutes: string[] }): void
  • Occurs when one or more members are removed from the mute list of the group.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [mutes] The user ID(s) of member(s) that is removed from the mute list.

    Parameters

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

    Returns void

  • onOwnerChanged(params: { groupId: string; newOwner: string; oldOwner: string }): void
  • Occurs when the group ownership is transferred.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [newOwner] The user ID of the new group owner.
    • Param [oldOwner] The user ID of the previous group owner.

    Parameters

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

    Returns void

  • onRequestToJoinAccepted(params: { accepter: string; groupId: string; groupName?: string }): void
  • Occurs when a join request from the current user is accepted by the peer user.

    For a group of the PublicJoinNeedApproval style, after user B accepts a join request from user A, user A receives this callback.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [groupName] The group name.
    • Param [accepter] The ID of the user that accepts the join request.

    Parameters

    • params: { accepter: string; groupId: string; groupName?: string }
      • accepter: string
      • groupId: string
      • Optional groupName?: string

    Returns void

  • onRequestToJoinDeclined(params: { decliner: string; groupId: string; groupName?: string; reason?: string }): void
  • Occurs when a join request from the current user is declined by the peer user.

    For example, for a group of the PublicJoinNeedApproval style, after user B declines a join request from user A, user A receives this callback.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [groupName] The group name.
    • Param [decliner] The ID of the user that declines the join request.
    • Param [reason] The reason for declining the join request.

    Parameters

    • params: { decliner: string; groupId: string; groupName?: string; reason?: string }
      • decliner: string
      • groupId: string
      • Optional groupName?: string
      • Optional reason?: string

    Returns void

  • onRequestToJoinReceived(params: { applicant: string; groupId: string; groupName?: string; reason?: string }): void
  • Occurs when a join request from the current user is received by the peer user.

    For example, after user A sends a join request to user B, user B receives this callback.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [groupName] The group name.
    • Param [applicant] The user ID of the applicant.
    • Param [reason] The reason for requesting to join the group.

    Parameters

    • params: { applicant: string; groupId: string; groupName?: string; reason?: string }
      • applicant: string
      • groupId: string
      • Optional groupName?: string
      • Optional reason?: string

    Returns void

  • onSharedFileAdded(params: { groupId: string; sharedFile: string }): void
  • Occurs when a shared file is added to the group.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [sharedFile] The ID of the new shared file.

    Parameters

    • params: { groupId: string; sharedFile: string }
      • groupId: string
      • sharedFile: string

    Returns void

  • onSharedFileDeleted(params: { fileId: string; groupId: string }): void
  • Occurs when a shared file is removed from a group.

    params

    The parameter set.

    • Param [groupId] The group ID.
    • Param [fileId] The ID of the shared file that is deleted.

    Parameters

    • params: { fileId: string; groupId: string }
      • fileId: string
      • groupId: string

    Returns void

  • Occurs when the disabled state of group changes.

    Parameters

    Returns void

Generated using TypeDoc