ChatGroupOptions constructor Null safety
- {ChatGroupStyle style = ChatGroupStyle.PrivateOnlyOwnerInvite,
- int maxCount = 200,
- bool inviteNeedConfirm = false,
- String? ext}
Sets the group options.
Param style The group style: {ChatGroupStyle}.
Param maxCount The maximum number of members in a group. The default value is 200.
Param inviteNeedConfirm Whether you can automatically add a user to the chat group depends on the settings of {GroupOptions#inviteNeedConfirm} and {ChatOptions#autoAcceptGroupInvitation}.
- If
inviteNeedConfirmis set tofalse, you can add the invitee directly to the chat group, regardless of the settings ofChatOptions#autoAcceptGroupInvitation. - If
inviteNeedConfirmis set totrue, whether the invitee automatically joins the chat group or not depends on the settings of {@link ChatOptions#autoAcceptGroupInvitation(boolean)} on the invitee's client.- If
autoAcceptGroupInvitationis set totrue, the invitee automatically joins the chat group. - If
autoAcceptGroupInvitationis set tofalse, the invitee does not join the chat group until this invitee approves the group invitation.
- If
Param ext Group detail extensions which can be in the JSON format to contain more group information.
Implementation
ChatGroupOptions({
this.style = ChatGroupStyle.PrivateOnlyOwnerInvite,
this.maxCount = 200,
this.inviteNeedConfirm = false,
this.ext,
});