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.
V2TIMFriendshipListener

Public Member Functions

 V2TIMFriendshipListener ()
 
virtual ~V2TIMFriendshipListener ()
 
virtual void OnFriendApplicationListAdded (const V2TIMFriendApplicationVector &applicationList)
 
virtual void OnFriendApplicationListDeleted (const V2TIMStringVector &userIDList)
 
virtual void OnFriendApplicationListRead ()
 
virtual void OnFriendListAdded (const V2TIMFriendInfoVector &userIDList)
 
virtual void OnFriendListDeleted (const V2TIMStringVector &userIDList)
 
virtual void OnBlackListAdded (const V2TIMFriendInfoVector &infoList)
 
virtual void OnBlackListDeleted (const V2TIMStringVector &userIDList)
 
virtual void OnFriendInfoChanged (const V2TIMFriendInfoVector &infoList)
 
virtual void OnFriendGroupCreated (const V2TIMString &groupName, const V2TIMFriendInfoVector &friendInfoList)
 
virtual void OnFriendGroupDeleted (const V2TIMStringVector &groupNameList)
 
virtual void OnFriendGroupNameChanged (const V2TIMString &oldGroupName, const V2TIMString &newGroupName)
 
virtual void OnFriendsAddedToGroup (const V2TIMString &groupName, const V2TIMFriendInfoVector &friendInfoList)
 
virtual void OnFriendsDeletedFromGroup (const V2TIMString &groupName, const V2TIMStringVector &friendIDList)
 
virtual void OnOfficialAccountSubscribed (const V2TIMOfficialAccountInfo &info)
 
virtual void OnOfficialAccountUnsubscribed (const V2TIMString &officialAccountID)
 
virtual void OnOfficialAccountDeleted (const V2TIMString &officialAccountID)
 
virtual void OnOfficialAccountInfoChanged (const V2TIMOfficialAccountInfo &info)
 
virtual void OnMyFollowingListChanged (const V2TIMUserFullInfoVector &userInfoList, bool isAdd)
 
virtual void OnMyFollowersListChanged (const V2TIMUserFullInfoVector &userInfoList, bool isAdd)
 
virtual void OnMutualFollowersListChanged (const V2TIMUserFullInfoVector &userInfoList, bool isAdd)
 

Constructor & Destructor Documentation

◆ V2TIMFriendshipListener()

◆ ~V2TIMFriendshipListener()

virtual ~V2TIMFriendshipListener ( )
virtual

Member Function Documentation

◆ OnFriendApplicationListAdded()

virtual void OnFriendApplicationListAdded ( const V2TIMFriendApplicationVector applicationList)
inlinevirtual

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()

virtual void OnFriendApplicationListDeleted ( const V2TIMStringVector userIDList)
inlinevirtual

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()

virtual void OnFriendApplicationListRead ( )
inlinevirtual

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()

virtual void OnFriendListAdded ( const V2TIMFriendInfoVector userIDList)
inlinevirtual

New friend notification

◆ OnFriendListDeleted()

virtual void OnFriendListDeleted ( const V2TIMStringVector userIDList)
inlinevirtual

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).

◆ OnBlackListAdded()

virtual void OnBlackListAdded ( const V2TIMFriendInfoVector infoList)
inlinevirtual

New blocklist notification

◆ OnBlackListDeleted()

virtual void OnBlackListDeleted ( const V2TIMStringVector userIDList)
inlinevirtual

Blocklist deletion notification

◆ OnFriendInfoChanged()

virtual void OnFriendInfoChanged ( const V2TIMFriendInfoVector infoList)
inlinevirtual

Friend profile update notification

◆ OnFriendGroupCreated()

virtual void OnFriendGroupCreated ( const V2TIMString groupName,
const V2TIMFriendInfoVector friendInfoList 
)
inlinevirtual

Notification of friend group creation

◆ OnFriendGroupDeleted()

virtual void OnFriendGroupDeleted ( const V2TIMStringVector groupNameList)
inlinevirtual

Notification of friend group deletion

◆ OnFriendGroupNameChanged()

virtual void OnFriendGroupNameChanged ( const V2TIMString oldGroupName,
const V2TIMString newGroupName 
)
inlinevirtual

Notification of friend group name changes

◆ OnFriendsAddedToGroup()

virtual void OnFriendsAddedToGroup ( const V2TIMString groupName,
const V2TIMFriendInfoVector friendInfoList 
)
inlinevirtual

Notification of adding friends to a friend group

◆ OnFriendsDeletedFromGroup()

virtual void OnFriendsDeletedFromGroup ( const V2TIMString groupName,
const V2TIMStringVector friendIDList 
)
inlinevirtual

Notification of deleting friends from a friend group

◆ OnOfficialAccountSubscribed()

virtual void OnOfficialAccountSubscribed ( const V2TIMOfficialAccountInfo info)
inlinevirtual

Notification for subscribing to an official account.

◆ OnOfficialAccountUnsubscribed()

virtual void OnOfficialAccountUnsubscribed ( const V2TIMString officialAccountID)
inlinevirtual

Notification for unsubscribing from an official account.

◆ OnOfficialAccountDeleted()

virtual void OnOfficialAccountDeleted ( const V2TIMString officialAccountID)
inlinevirtual

Notification for a subscribed official account being deleted.

◆ OnOfficialAccountInfoChanged()

virtual void OnOfficialAccountInfoChanged ( const V2TIMOfficialAccountInfo info)
inlinevirtual

Notification for the updated information of a subscribed official account.

◆ OnMyFollowingListChanged()

virtual void OnMyFollowingListChanged ( const V2TIMUserFullInfoVector userInfoList,
bool  isAdd 
)
inlinevirtual

Notification of changes to the following list

◆ OnMyFollowersListChanged()

virtual void OnMyFollowersListChanged ( const V2TIMUserFullInfoVector userInfoList,
bool  isAdd 
)
inlinevirtual

Notification of changes to the followers list

◆ OnMutualFollowersListChanged()

virtual void OnMutualFollowersListChanged ( const V2TIMUserFullInfoVector userInfoList,
bool  isAdd 
)
inlinevirtual

Notification of changes to the mutual followers list