hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
Public Attributes | List of all members
com.hyphenate.chat.EMGroupOptions Class Reference

Public Attributes

int maxUsers = 200
 
EMGroupManager.EMGroupStyle style = EMGroupManager.EMGroupStyle.EMGroupStylePrivateOnlyOwnerInvite
 
boolean inviteNeedConfirm = false
 
String extField
 

Detailed Description

Group property options to be configured during group creation.

Member Data Documentation

◆ extField

String com.hyphenate.chat.EMGroupOptions.extField

Group detail extensions which can be in the JSON format to contain more group information.

◆ inviteNeedConfirm

boolean com.hyphenate.chat.EMGroupOptions.inviteNeedConfirm = false

This option defines whether to ask for content when inviting a user to join a group. Whether automatically acceting the invitation to join a group depends on two settings: inviteNeedConfirm, an option during group creation, and EMOptions#setAutoAcceptGroupInvitation(boolean) which determines whether to automatically accept an invitation to join the group. There are two cases: (1) If inviteNeedConfirm is set to 'false', adds the invitee directly to the group on the server side regardless of the setting of EMOptions#setAutoAcceptGroupInvitation(boolean).

(2) If inviteNeedConfirm is set to 'true', the user automatically joins a group or decides whether to join, depending on the setting of EMOptions#setAutoAcceptGroupInvitation(boolean). EMOptions#setAutoAcceptGroupInvitation(boolean) is an SDK-level operation. If it is set to true, SDK calls the API for agreeing to join the group to automatically accept the joining invitation. If inviteNeedConfirm is set to false, SDK does not automatically accept its invitation, but the user decides to accept or reject the invitation.

◆ maxUsers

int com.hyphenate.chat.EMGroupOptions.maxUsers = 200

The maximum number of members in a group.

◆ style

EMGroupManager.EMGroupStyle com.hyphenate.chat.EMGroupOptions.style = EMGroupManager.EMGroupStyle.EMGroupStylePrivateOnlyOwnerInvite

The documentation for this class was generated from the following file: