join Group
Join a group
The group join permission io.rong.imlib.model.GroupJoinPermission determines whether a user can join the group.
Parameters
The ID of the group.
The callback that returns the result after the operation is completed.Description of the onSuccess parameter in the callback:- When the group's joinPermission is set to require 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 join request event callback.- When the group's joinPermission does not require verification, IRongCoreEnum.CoreErrorCode returns SUCCESS (0), indicating that the join was successful. All group members will receive a group operation event onGroupOperation callback, with the operation set to Join.