create Group
Create Group
Note: The following attributes can be set in the group information (GroupInfo): 1. Group ID (id), with a maximum length of 64 characters. Supports a combination of uppercase and lowercase letters and numbers. 2. Group name (name), with a maximum length of 64 characters. 3. Group avatar (portraitUri), with a maximum length of 128 characters. 4. Group introduction (introduction), with a maximum length of 512 characters. 5. Group notice (notice), with a maximum length of 1024 characters. 6. Group extended information (extProfile), with a default maximum of 10 items. This must be configured via the developer console or API; otherwise, the setting will fail. 7. Active join group permission mode (joinPermission). 8. Remove member from group permission mode (removeMemberPermission). 9. Invite others to join group permission mode (invitePermission). 10. Invited user join group permission mode (inviteHandlePermission). 11. Group information update permission mode (groupInfoEditPermission). 12. Group member information update permission mode (memberInfoEditPermission). Note: Group ID (id) and group name (name) are mandatory fields; otherwise, the API call will fail. For details, refer to GroupInfo.
Parameters
Group information.
An array of user IDs to be invited to the group, with a maximum of 30 users allowed at once. (Optional)
The result of the operation is returned via this callback.Description of the onSuccess parameter in the callback:- When the inviteHandlePermission is set to require the invitee's consent to join the group, IRongCoreEnum.CoreErrorCode returns RC_GROUP_NEED_INVITEE_ACCEPT (25427).- When the inviteHandlePermission does not require the invitee's consent, SUCCESS (0) is returned, and the invitee will join the group directly.Description of the onError parameter in the callback:- If errorData is not empty, it indicates the specific key in GroupInfo that caused the error.