Class GroupOperationsHandler

    • Constructor Detail

      • GroupOperationsHandler

        GroupOperationsHandler(ChannelIdentifier channelIdentifier)
        Constructor that initializes the group ID.
        Parameters:
        channelIdentifier - the channel identifier
    • Method Detail

      • inviteUsersToGroup

         void inviteUsersToGroup(@NonNull() List<String> userIds)

        Invites users to join the group.

        Parameters:
        userIds - the list of user IDs
      • kickGroupMembers

         void kickGroupMembers(List<String> userIds, LeaveGroupConfig config)

        Kicks members from the group.

        Parameters:
        userIds - the list of user IDs
        config - the leave group configuration
      • updateGroupInfo

        @Deprecated() void updateGroupInfo(@NonNull() GroupInfo groupInfo)

        Updates the group info.

        Parameters:
        groupInfo - the group info
      • updateGroupInfoExamine

         void updateGroupInfoExamine(@NonNull() GroupInfo groupInfo)

        Updates the group info with review.

        Parameters:
        groupInfo - the group info
      • setGroupMemberInfoExamine

         void setGroupMemberInfoExamine(String userId, String nickname, String extra)

        Sets group member info with review.

        Parameters:
        userId - the user ID
        nickname - the nickname
        extra - the extra information
      • quitGroup

         void quitGroup(LeaveGroupConfig config)

        Quits the group.

        Parameters:
        config - the leave group configuration
      • addGroupFollows

         void addGroupFollows(List<String> userIds)

        Adds favorited group members.

        Parameters:
        userIds - the list of user IDs
        Since:

        5.12.2

      • removeGroupFollows

         void removeGroupFollows(List<String> userIds)

        Removes favorited group members.

        Parameters:
        userIds - the list of user IDs
        Since:

        5.12.2

      • transferGroupOwner

         void transferGroupOwner(String newOwnerId, boolean quitGroup, LeaveGroupConfig config)

        Transfers group ownership.

        Parameters:
        newOwnerId - the new owner's user ID
        quitGroup - whether to quit the group after transfer
        config - the leave group configuration
        Since:

        5.12.2

      • addGroupManagers

         void addGroupManagers(List<String> userIds)

        Adds group managers.

        Parameters:
        userIds - the list of user IDs
        Since:

        5.12.2

      • removeGroupManagers

         void removeGroupManagers(List<String> userIds)

        Removes group managers.

        Parameters:
        userIds - the list of user IDs
        Since:

        5.12.2

      • joinGroup

         void joinGroup()

        Joins the group.

        The join permission determines whether the user can join directly. When the group requires approval, the NC_GROUP_JOIN_GROUP_NEED_MANAGER_ACCEPT status code is returned, indicating the user needs to wait for the owner or manager to approve.

        Since:

        5.34.0