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:
 
(onFriendApplicationListRead() - NS_SWIFT_NAME
 
(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: (onFriendApplicationListAdded(applicationList:))  NS_SWIFT_NAME
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: (onFriendApplicationListDeleted(userIDList:))  NS_SWIFT_NAME
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.

◆ NS_SWIFT_NAME()

- (onFriendApplicationListRead() NS_SWIFT_NAME
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: (onFriendListAdded(infoList:))  NS_SWIFT_NAME
optional

New friend notification

◆ onFriendListDeleted:()

- (void) onFriendListDeleted: (onFriendListDeleted(userIDList:))  NS_SWIFT_NAME
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: (onBlackListAdded(infoList:))  NS_SWIFT_NAME
optional

New blocklist notification

◆ onBlackListDeleted:()

- (void) onBlackListDeleted: (onBlackListDeleted(userIDList:))  NS_SWIFT_NAME
optional

Blocklist deletion notification

◆ onFriendProfileChanged:()

- (void) onFriendProfileChanged: (onFriendProfileChanged(infoList:))  NS_SWIFT_NAME
optional

Friend profile update notification

◆ onFriendGroupCreated:friendInfoList:()

- (void) onFriendGroupCreated: (NSString *_Nullable)  groupName
friendInfoList: (onFriendGroupCreated(groupName:friendInfoList:))  NS_SWIFT_NAME 
optional

Notification of friend group creation

◆ onFriendGroupDeleted:()

- (void) onFriendGroupDeleted: (onFriendGroupDeleted(groupNameList:))  NS_SWIFT_NAME
optional

Notification of friend group deletion

◆ onFriendGroupNameChanged:newGroupName:()

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

Notification of friend group name changes

◆ onFriendsAddedToGroup:friendInfoList:()

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

Notification of adding friends to a friend group

◆ onFriendsDeletedFromGroup:friendIDList:()

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

Notification of deleting friends from a friend group

◆ onOfficialAccountSubscribed:()

- (void) onOfficialAccountSubscribed: (onOfficialAccountSubscribed(officialAccountInfo:))  NS_SWIFT_NAME
optional

Notification for subscribing to an official channel.

◆ onOfficialAccountUnsubscribed:()

- (void) onOfficialAccountUnsubscribed: (onOfficialAccountUnsubscribed(officialAccountID:))  NS_SWIFT_NAME
optional

Notification for unsubscribing from an official channel.

◆ onOfficialAccountDeleted:()

- (void) onOfficialAccountDeleted: (onOfficialAccountDeleted(officialAccountID:))  NS_SWIFT_NAME
optional

Notification for a subscribed official channel being deleted.

◆ onOfficialAccountInfoChanged:()

- (void) onOfficialAccountInfoChanged: (onOfficialAccountInfoChanged(officialAccountInfo:))  NS_SWIFT_NAME
optional

Notification for the updated information of a subscribed official channel.

◆ 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: (onMyFollowersListChanged(userInfoList:isAdd:))  NS_SWIFT_NAME 
optional

Notification of changes to the followers list

◆ onMutualFollowersListChanged:isAdd:()

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

Notification of changes to the mutual followers list