inviteUsersToGroup

public abstract void inviteUsersToGroup(String groupId, List<String> userIds, IRongCoreCallback.ResultCallback<IRongCoreEnum.CoreErrorCode> callback)

Invite Users to Join a Group

Who can invite others to join the group is determined by .

How the invitation to join the group is handled is determined by .

Parameters

groupId

The ID of the group.

userIds

The list of user IDs to be invited. The maximum number of users is 30.

callback

The callback to return the result after the operation is completed. The onSuccess parameter of the callback indicates:- When the group's join permission joinPermission requires approval from the group owner or administrator, IRongCoreEnum.CoreErrorCode returns RC_GROUP_JOIN_GROUP_NEED_MANAGER_ACCEPT(25424), indicating that approval from the group owner or administrator is required. The group owner or administrator will receive a group application event callback.- When the group's join permission joinPermission does not require verification, and the invitee's consent is required for the invitation to join the group (inviteHandlePermission), IRongCoreEnum.CoreErrorCode returns RC_GROUP_NEED_INVITEE_ACCEPT(25427), indicating that the invitee's consent is required.