IMSDK
即时通信 IM 提供全球接入、单聊、群聊、消息推送、资料关系链托管、账号鉴权等全方位解决方案,并提供完备的 App 接入、后台管理接口。
<V2TIMFriendshipListener>

详细描述

资料关系链回调

构造函数

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

函数文档

◆ onFriendApplicationListAdded:()

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

好友申请新增通知,两种情况会收到这个回调:

  1. 自己申请加别人好友
  2. 别人申请加自己好友

◆ onFriendApplicationListDeleted:()

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

好友申请删除通知,四种情况会收到这个回调:

  1. 调用 deleteFriendApplication 主动删除好友申请
  2. 调用 refuseFriendApplication 拒绝好友申请
  3. 调用 acceptFriendApplication 同意好友申请
  4. 申请加别人好友被拒绝

◆ onFriendApplicationListRead()

- (void) onFriendApplicationListRead
optional

好友申请已读通知,如果调用 setFriendApplicationRead 设置好友申请列表已读,会收到这个回调(主要用于多端同步)

◆ onFriendListAdded:()

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

好友新增通知

◆ onFriendListDeleted:()

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

好友删除通知,两种情况会收到这个回调:

  1. 自己删除好友(单向和双向删除都会收到回调)
  2. 好友把自己删除(双向删除会收到)

◆ onBlackListAdded:()

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

黑名单新增通知

◆ onBlackListDeleted:()

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

黑名单删除通知

◆ onFriendProfileChanged:()

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

好友资料变更通知

◆ onFriendGroupCreated:friendInfoList:()

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

好友分组被创建

◆ onFriendGroupDeleted:()

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

好友分组被删除

◆ onFriendGroupNameChanged:newGroupName:()

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

好友分组名变更

◆ onFriendsAddedToGroup:friendInfoList:()

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

好友分组新增好友

◆ onFriendsDeletedFromGroup:friendIDList:()

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

好友分组删除好友

◆ onOfficialAccountSubscribed:()

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

订阅公众号通知

◆ onOfficialAccountUnsubscribed:()

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

取消订阅公众号通知

◆ onOfficialAccountDeleted:()

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

订阅的公众号被删除通知

◆ onOfficialAccountInfoChanged:()

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

订阅的公众号资料更新通知

◆ onMyFollowingListChanged:isAdd:()

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

关注列表变更通知

◆ onMyFollowersListChanged:isAdd:()

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

粉丝列表变更通知

◆ onMutualFollowersListChanged:isAdd:()

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

互关列表变更通知