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)
 

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 notification. When you call setFriendApplicationRead to set the friend request list as read, 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