Options
All
  • Public
  • Public/Protected
  • All
Menu

export class type

Hierarchy

  • ChatGroupOptions

Index

Constructors

  • new ChatGroupOptions(params: { ext?: string; inviteNeedConfirm?: boolean; isDisabled?: boolean; maxCount?: number; style?: number }): ChatGroupOptions
  • Construct a group option.

    Parameters

    • params: { ext?: string; inviteNeedConfirm?: boolean; isDisabled?: boolean; maxCount?: number; style?: number }
      • Optional ext?: string
      • Optional inviteNeedConfirm?: boolean
      • Optional isDisabled?: boolean
      • Optional maxCount?: number
      • Optional style?: number

    Returns ChatGroupOptions

Properties

ext?: string

The group extension information.

inviteNeedConfirm: boolean

Whether to ask for consent when inviting a user to join a group.

Whether to automatically accept the invitation to join a group depends on two settings:

  • {@link GroupOptions.inviteNeedConfirm}, an option for group creation.
  • ChatOptions.autoAcceptGroupInvitation: Determines whether to automatically accept an invitation to join the group.

There are two cases:

ChatOptions.autoAcceptGroupInvitation is an SDK-level operation. If it is set to true, the invitee automatically joins the chat group; if it is set to false, the invitee can manually accept or decline the group invitation instead of joining the group automatically.

isDisabled: boolean

Whether the group is disabled:

  • true: Yes.
  • false: No.
maxCount: number

The maximum number of members allowed in a group.

The group style.

Generated using TypeDoc