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>

Instance Methods

(void) - onFriendApplicationListAdded:
 
(void) - onFriendApplicationListDeleted:
 
(void) - onFriendApplicationListRead
 
(void) - onFriendListAdded:
 
(void) - onFriendListDeleted:
 
(void) - onBlackListAdded:
 
(void) - onBlackListDeleted:
 
(void) - onFriendProfileChanged:
 

Method Documentation

◆ onFriendApplicationListAdded:()

- (void) onFriendApplicationListAdded: (NSArray< V2TIMFriendApplication * > *)  applicationList
optional

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: (NSArray *)  userIDList
optional

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
optional

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: (NSArray< V2TIMFriendInfo * > *)  infoList
optional

New friend notification

◆ onFriendListDeleted:()

- (void) onFriendListDeleted: (NSArray *)  userIDList
optional

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

- (void) onBlackListAdded: (NSArray< V2TIMFriendInfo * > *)  infoList
optional

New blocklist notification

◆ onBlackListDeleted:()

- (void) onBlackListDeleted: (NSArray *)  userIDList
optional

Blocklist deletion notification

◆ onFriendProfileChanged:()

- (void) onFriendProfileChanged: (NSArray< V2TIMFriendInfo * > *)  infoList
optional

Friend profile update notification