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:
 
(void) - onFriendGroupCreated:friendInfoList:
 
(void) - onFriendGroupDeleted:
 
(void) - onFriendGroupNameChanged:newGroupName:
 
(void) - onFriendsAddedToGroup:friendInfoList:
 
(void) - onFriendsDeletedFromGroup:friendIDList:
 
(void) - onOfficialAccountSubscribed:
 
(void) - onOfficialAccountUnsubscribed:
 
(void) - onOfficialAccountDeleted:
 
(void) - onOfficialAccountInfoChanged:
 
(void) - onMyFollowingListChanged:isAdd:
 
(void) - onMyFollowersListChanged:isAdd:
 
(void) - onMutualFollowersListChanged:isAdd:
 

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

◆ onFriendGroupCreated:friendInfoList:()

- (void) onFriendGroupCreated: (NSString *)  groupName
friendInfoList: (NSArray< V2TIMFriendInfo * > *)  friendInfoList 
optional

Notification of friend group creation

◆ onFriendGroupDeleted:()

- (void) onFriendGroupDeleted: (NSArray< NSString * > *)  groupNameList
optional

Notification of friend group deletion

◆ onFriendGroupNameChanged:newGroupName:()

- (void) onFriendGroupNameChanged: (NSString *)  oldGroupName
newGroupName: (NSString *)  newGroupName 
optional

Notification of friend group name changes

◆ onFriendsAddedToGroup:friendInfoList:()

- (void) onFriendsAddedToGroup: (NSString *)  groupName
friendInfoList: (onFriendsAddedToGroup(groupName:friendInfoList:))  NS_SWIFT_NAME 
optional

Notification of adding friends to a friend group

◆ onFriendsDeletedFromGroup:friendIDList:()

- (void) onFriendsDeletedFromGroup: (NSString *)  groupName
friendIDList: (onFriendsDeletedFromGroup(groupName:friendIDList:))  NS_SWIFT_NAME 
optional

Notification of deleting friends from a friend group

◆ onOfficialAccountSubscribed:()

- (void) onOfficialAccountSubscribed: (V2TIMOfficialAccountInfo *)  officialAccountInfo
optional

Notification for subscribing to an official account.

◆ onOfficialAccountUnsubscribed:()

- (void) onOfficialAccountUnsubscribed: (NSString *)  officialAccountID
optional

Notification for unsubscribing from an official account.

◆ onOfficialAccountDeleted:()

- (void) onOfficialAccountDeleted: (NSString *)  officialAccountID
optional

Notification for a subscribed official account being deleted.

◆ onOfficialAccountInfoChanged:()

- (void) onOfficialAccountInfoChanged: (V2TIMOfficialAccountInfo *)  officialAccountInfo
optional

Notification for the updated information of a subscribed official account.

◆ onMyFollowingListChanged:isAdd:()

- (void) onMyFollowingListChanged: (NSArray< V2TIMUserFullInfo * > *)  userInfoList
isAdd: (onMyFollowingListChanged(userInfoList:isAdd:))  NS_SWIFT_NAME 
optional

Notification of changes to the following list

◆ onMyFollowersListChanged:isAdd:()

- (void) onMyFollowersListChanged: (NSArray< V2TIMUserFullInfo * > *)  userInfoList
isAdd: (BOOL)  isAdd 
optional

Notification of changes to the followers list

◆ onMutualFollowersListChanged:isAdd:()

- (void) onMutualFollowersListChanged: (NSArray< V2TIMUserFullInfo * > *)  userInfoList
isAdd: (BOOL)  isAdd 
optional

Notification of changes to the mutual followers list