Interface FriendEventListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onFriendAdd(DirectionType directionType, String userId, String name, String portraitUri, long operationTime) Friend Request Callback
      abstract void onFriendDelete(DirectionType directionType, List<String> userIds, long operationTime) Friend Deletion Callback
      abstract void onFriendApplicationStatusChanged(String userId, FriendApplicationType applicationType, FriendApplicationStatus applicationStatus, DirectionType directionType, long operationTime, String extra) Friend request status callback event
      abstract void onFriendCleared(long operationTime) Friend List Clear Callback Event Note: This operation can only be initiated by the server.
      abstract void onFriendInfoChangedSync(String userId, String remark, Map<String, String> extProfile, long operationTime) Friend information update multi-device callback event
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onFriendAdd

         abstract void onFriendAdd(DirectionType directionType, String userId, String name, String portraitUri, long operationTime)

        Friend Request Callback

        Parameters:
        directionType - Specifies the direction type of the friend request.
        userId - Indicates the user ID
        name - Represents the name of the user
        portraitUri - Specifies the URI of the user's portrait
        operationTime - Indicates the time of the operation
      • onFriendDelete

         abstract void onFriendDelete(DirectionType directionType, List<String> userIds, long operationTime)

        Friend Deletion Callback

        Parameters:
        directionType - The direction type of the friend relationship.
        userIds - List of user IDs that were deleted
        operationTime - The time of the operation
      • onFriendApplicationStatusChanged

         abstract void onFriendApplicationStatusChanged(String userId, FriendApplicationType applicationType, FriendApplicationStatus applicationStatus, DirectionType directionType, long operationTime, String extra)

        Friend request status callback event

        Parameters:
        userId - The user ID
        applicationType - The type of friend request.
        applicationStatus - The status type.
        directionType - The direction type of the friend request.
        operationTime - The update time
        extra - Additional content: The description of the friend request
      • onFriendCleared

         abstract void onFriendCleared(long operationTime)

        Friend List Clear Callback Event

        Note: This operation can only be initiated by the server.

        Parameters:
        operationTime - Update time
      • onFriendInfoChangedSync

         abstract void onFriendInfoChangedSync(String userId, String remark, Map<String, String> extProfile, long operationTime)

        Friend information update multi-device callback event

        Parameters:
        userId - User ID
        remark - Friend's remark name
        extProfile - Extended information
        operationTime - Update time