Package io.rong.imlib.listener
Interface FriendEventListener
-
- All Implemented Interfaces:
public interface FriendEventListener
-
-
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 -
-
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 IDname
- Represents the name of the userportraitUri
- Specifies the URI of the user's portraitoperationTime
- 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 deletedoperationTime
- 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 IDapplicationType
- The type of friend request.applicationStatus
- The status type.directionType
- The direction type of the friend request.operationTime
- The update timeextra
- 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 IDremark
- Friend's remark nameextProfile
- Extended informationoperationTime
- Update time
-
-
-
-