Interface UserManager

  • All Implemented Interfaces:

    
    public interface UserManager
    
                        
    • Constructor Detail

    • Method Detail

      • subscribeEvent

         abstract void subscribeEvent(SubscribeEventRequest request, IRongCoreCallback.SubscribeEventCallback<List<String>> callback)

        Subscribes to user status events.

        This method is used to subscribe to the status of a group of users. When the status of these users changes, the caller will be notified through the callback interface.

        Parameters:
        request - The subscription request object containing the user information whose status needs to be subscribed.
        callback - The result callback used to receive the result of the subscription operation or status update notifications.
        Since:

        5.8.0

      • unSubscribeEvent

         abstract void unSubscribeEvent(SubscribeEventRequest request, IRongCoreCallback.SubscribeEventCallback<List<String>> callback)

        Unsubscribes from user status events.

        This method is used to unsubscribe from previously subscribed user status events.

        Parameters:
        request - The request object for unsubscription, containing the user information for which the status subscription should be canceled.
        callback - The result callback used to receive the outcome of the unsubscription operation.
        Since:

        5.8.0

      • querySubscribeEvent

         abstract void querySubscribeEvent(SubscribeEventRequest request, IRongCoreCallback.ResultCallback<List<SubscribeInfoEvent>> callback)

        Queries the current status of subscribed events.

        This method is used to retrieve the status information of all currently subscribed events.

        Parameters:
        request - The query request object, which can specify the specific subscribed events to query.
        callback - The callback through which the list of subscribed events is returned after the query operation is completed.
        Since:

        5.8.0

      • updateMyUserProfile

         abstract void updateMyUserProfile(UserProfile profile, IRongCoreCallback.UpdateUserProfileCallback callback)

        Update user profile

        Note: It is recommended to fetch the user profile first and then update the profile based on the latest information.

        Parameters:
        profile - User profile information
        callback - The operation result is returned through this callback after the operation is completed.
        Since:

        5.10.0

      • getUserProfiles

         abstract void getUserProfiles(List<String> userIdList, IRongCoreCallback.ResultCallback<List<UserProfile>> callback)

        Batch fetch user profiles

        Parameters:
        userIdList - List of user IDs, with a maximum of 20 IDs per request
        callback - The user profile list is returned through this callback upon completion of the operation.
        Since:

        5.10.0

      • updateMyUserProfileVisibility

         abstract void updateMyUserProfileVisibility(UserProfileVisibility visibility, IRongCoreCallback.ResultCallback<Boolean> callback)

        User Permission Settings

        Parameters:
        visibility - User information permission
        callback - The operation result is returned through this callback after the operation is completed.
        Since:

        5.10.0

      • searchUserProfileByUniqueId

         abstract void searchUserProfileByUniqueId(String uniqueId, IRongCoreCallback.ResultCallback<UserProfile> callback)

        Search for user information by their unique application ID.

        Parameters:
        uniqueId - The user's unique application ID.
        callback - The callback through which the result is returned after the operation is completed.
        Since:

        5.10.0