IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMFriendshipListenerabstract

Public Member Functions

void onFriendApplicationListAdded (List< V2TIMFriendApplication > applicationList)
 
void onFriendApplicationListDeleted (List< String > userIDList)
 
void onFriendApplicationListRead ()
 
void onFriendListAdded (List< V2TIMFriendInfo > users)
 
void onFriendListDeleted (List< String > userList)
 
void onBlackListAdd (List< V2TIMFriendInfo > infoList)
 
void onBlackListDeleted (List< String > userList)
 
void onFriendInfoChanged (List< V2TIMFriendInfo > infoList)
 
void onFriendGroupCreated (String groupName, List< V2TIMFriendInfo > friendInfoList)
 
void onFriendGroupDeleted (List< String > groupNameList)
 
void onFriendGroupNameChanged (String oldGroupName, String newGroupName)
 
void onFriendsAddedToGroup (String groupName, List< V2TIMFriendInfo > friendInfoList)
 
void onFriendsDeletedFromGroup (String groupName, List< String > friendIDList)
 
void onOfficialAccountSubscribed (V2TIMOfficialAccountInfo officialAccountInfo)
 
void onOfficialAccountUnsubscribed (String officialAccountID)
 
void onOfficialAccountDeleted (String officialAccountID)
 
void onOfficialAccountInfoChanged (V2TIMOfficialAccountInfo officialAccountInfo)
 
void onMyFollowingListChanged (List< V2TIMUserFullInfo > userInfoList, boolean isAdd)
 
void onMyFollowersListChanged (List< V2TIMUserFullInfo > userInfoList, boolean isAdd)
 
void onMutualFollowersListChanged (List< V2TIMUserFullInfo > userInfoList, boolean isAdd)
 

Member Function Documentation

◆ onFriendApplicationListAdded()

void onFriendApplicationListAdded ( List< V2TIMFriendApplication applicationList)
inline

New friend request notification. You will receive this callback in the following cases:

  1. You send a friend request to others.
  2. You receive a friend request from others.

◆ onFriendApplicationListDeleted()

void onFriendApplicationListDeleted ( List< String >  userIDList)
inline

Friend request deletion notification. You will receive this callback in the following cases:

  1. You call deleteFriendApplication to proactively delete a friend request.
  2. You call refuseFriendApplication to reject a friend request.
  3. You call acceptFriendApplication to accept a friend request and the acceptance type is V2TIM_FRIEND_ACCEPT_AGREE.
  4. Your friend request is rejected by others.

◆ onFriendApplicationListRead()

void onFriendApplicationListRead ( )
inline

Friend request read receipts. If you have called setFriendApplicationRead to set read receipts for friend requests, you will receive this callback (mainly used for multi-device synchronization).

◆ onFriendListAdded()

void onFriendListAdded ( List< V2TIMFriendInfo users)
inline

New friend notification

◆ onFriendListDeleted()

void onFriendListDeleted ( List< String >  userList)
inline

Friend deletion notification. You will receive this callback in the following cases:

  1. You delete a friend (received for one-way or two-way friend deletion).
  2. You are deleted by a friend (received for two-way friend deletion).

◆ onBlackListAdd()

void onBlackListAdd ( List< V2TIMFriendInfo infoList)
inline

New blocklist notification

◆ onBlackListDeleted()

void onBlackListDeleted ( List< String >  userList)
inline

Blocklist deletion notification

◆ onFriendInfoChanged()

void onFriendInfoChanged ( List< V2TIMFriendInfo infoList)
inline

Friend profile update notification

◆ onFriendGroupCreated()

void onFriendGroupCreated ( String  groupName,
List< V2TIMFriendInfo friendInfoList 
)
inline

Notification of friend group creation

◆ onFriendGroupDeleted()

void onFriendGroupDeleted ( List< String >  groupNameList)
inline

Notification of friend group deletion

◆ onFriendGroupNameChanged()

void onFriendGroupNameChanged ( String  oldGroupName,
String  newGroupName 
)
inline

Notification of friend group name changes

◆ onFriendsAddedToGroup()

void onFriendsAddedToGroup ( String  groupName,
List< V2TIMFriendInfo friendInfoList 
)
inline

Notification of adding friends to a friend group

◆ onFriendsDeletedFromGroup()

void onFriendsDeletedFromGroup ( String  groupName,
List< String >  friendIDList 
)
inline

Notification of deleting friends from a friend group

◆ onOfficialAccountSubscribed()

void onOfficialAccountSubscribed ( V2TIMOfficialAccountInfo  officialAccountInfo)
inline

Notification for subscribing to an official account.

Parameters
officialAccountInfoInformation about the subscribed official account.

◆ onOfficialAccountUnsubscribed()

void onOfficialAccountUnsubscribed ( String  officialAccountID)
inline

Notification for unsubscribing from an official account.

Parameters
officialAccountIDThe ID of the unsubscribed official account.

◆ onOfficialAccountDeleted()

void onOfficialAccountDeleted ( String  officialAccountID)
inline

Notification for a subscribed official account being deleted.

Parameters
officialAccountIDThe ID of the deleted official account.

◆ onOfficialAccountInfoChanged()

void onOfficialAccountInfoChanged ( V2TIMOfficialAccountInfo  officialAccountInfo)
inline

Notification for the updated information of a subscribed official account.

Parameters
officialAccountInfoThe updated information of the official account.

◆ onMyFollowingListChanged()

void onMyFollowingListChanged ( List< V2TIMUserFullInfo userInfoList,
boolean  isAdd 
)
inline

Notification of changes to the following list

◆ onMyFollowersListChanged()

void onMyFollowersListChanged ( List< V2TIMUserFullInfo userInfoList,
boolean  isAdd 
)
inline

Notification of changes to the followers list

◆ onMutualFollowersListChanged()

void onMutualFollowersListChanged ( List< V2TIMUserFullInfo userInfoList,
boolean  isAdd 
)
inline

Notification of changes to the mutual following list