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

Public 成员函数

 V2TIMFriendshipListener ()
 
virtual ~V2TIMFriendshipListener ()
 
virtual void OnFriendApplicationListAdded (const V2TIMFriendApplicationVector &applicationList)
 
virtual void OnFriendApplicationListDeleted (const V2TIMStringVector &userIDList)
 
virtual void OnFriendApplicationListRead ()
 
virtual void OnFriendListAdded (const V2TIMFriendInfoVector &userIDList)
 
virtual void OnFriendListDeleted (const V2TIMStringVector &userIDList)
 
virtual void OnBlackListAdded (const V2TIMFriendInfoVector &infoList)
 
virtual void OnBlackListDeleted (const V2TIMStringVector &userIDList)
 
virtual void OnFriendInfoChanged (const V2TIMFriendInfoVector &infoList)
 
virtual void OnFriendGroupCreated (const V2TIMString &groupName, const V2TIMFriendInfoVector &friendInfoList)
 
virtual void OnFriendGroupDeleted (const V2TIMStringVector &groupNameList)
 
virtual void OnFriendGroupNameChanged (const V2TIMString &oldGroupName, const V2TIMString &newGroupName)
 
virtual void OnFriendsAddedToGroup (const V2TIMString &groupName, const V2TIMFriendInfoVector &friendInfoList)
 
virtual void OnFriendsDeletedFromGroup (const V2TIMString &groupName, const V2TIMStringVector &friendIDList)
 
virtual void OnOfficialAccountSubscribed (const V2TIMOfficialAccountInfo &info)
 
virtual void OnOfficialAccountUnsubscribed (const V2TIMString &officialAccountID)
 
virtual void OnOfficialAccountDeleted (const V2TIMString &officialAccountID)
 
virtual void OnOfficialAccountInfoChanged (const V2TIMOfficialAccountInfo &info)
 
virtual void OnMyFollowingListChanged (const V2TIMUserFullInfoVector &userInfoList, bool isAdd)
 
virtual void OnMyFollowersListChanged (const V2TIMUserFullInfoVector &userInfoList, bool isAdd)
 
virtual void OnMutualFollowersListChanged (const V2TIMUserFullInfoVector &userInfoList, bool isAdd)
 

构造及析构函数说明

◆ V2TIMFriendshipListener()

◆ ~V2TIMFriendshipListener()

virtual ~V2TIMFriendshipListener ( )
virtual

成员函数说明

◆ OnFriendApplicationListAdded()

virtual void OnFriendApplicationListAdded ( const V2TIMFriendApplicationVector applicationList)
inlinevirtual

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

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

◆ OnFriendApplicationListDeleted()

virtual void OnFriendApplicationListDeleted ( const V2TIMStringVector userIDList)
inlinevirtual

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

  1. 调用 DeleteFriendApplication 主动删除好友申请
  2. 调用 RefuseFriendApplication 拒绝好友申请
  3. 调用 AcceptFriendApplication 同意好友申请且同意类型为 V2TIM_FRIEND_ACCEPT_AGREE 时
  4. 申请加别人好友被拒绝

◆ OnFriendApplicationListRead()

virtual void OnFriendApplicationListRead ( )
inlinevirtual

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

◆ OnFriendListAdded()

virtual void OnFriendListAdded ( const V2TIMFriendInfoVector userIDList)
inlinevirtual

好友新增通知

◆ OnFriendListDeleted()

virtual void OnFriendListDeleted ( const V2TIMStringVector userIDList)
inlinevirtual

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

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

◆ OnBlackListAdded()

virtual void OnBlackListAdded ( const V2TIMFriendInfoVector infoList)
inlinevirtual

黑名单新增通知

◆ OnBlackListDeleted()

virtual void OnBlackListDeleted ( const V2TIMStringVector userIDList)
inlinevirtual

黑名单删除通知

◆ OnFriendInfoChanged()

virtual void OnFriendInfoChanged ( const V2TIMFriendInfoVector infoList)
inlinevirtual

好友资料更新通知

◆ OnFriendGroupCreated()

virtual void OnFriendGroupCreated ( const V2TIMString groupName,
const V2TIMFriendInfoVector friendInfoList 
)
inlinevirtual

好友分组被创建的通知

◆ OnFriendGroupDeleted()

virtual void OnFriendGroupDeleted ( const V2TIMStringVector groupNameList)
inlinevirtual

好友分组被删除的通知

◆ OnFriendGroupNameChanged()

virtual void OnFriendGroupNameChanged ( const V2TIMString oldGroupName,
const V2TIMString newGroupName 
)
inlinevirtual

好友分组名变更的通知

◆ OnFriendsAddedToGroup()

virtual void OnFriendsAddedToGroup ( const V2TIMString groupName,
const V2TIMFriendInfoVector friendInfoList 
)
inlinevirtual

好友分组新增好友的通知

◆ OnFriendsDeletedFromGroup()

virtual void OnFriendsDeletedFromGroup ( const V2TIMString groupName,
const V2TIMStringVector friendIDList 
)
inlinevirtual

好友分组删除好友的通知

◆ OnOfficialAccountSubscribed()

virtual void OnOfficialAccountSubscribed ( const V2TIMOfficialAccountInfo info)
inlinevirtual

订阅公众号通知

◆ OnOfficialAccountUnsubscribed()

virtual void OnOfficialAccountUnsubscribed ( const V2TIMString officialAccountID)
inlinevirtual

取消订阅公众号通知

◆ OnOfficialAccountDeleted()

virtual void OnOfficialAccountDeleted ( const V2TIMString officialAccountID)
inlinevirtual

订阅的公众号被删除通知

◆ OnOfficialAccountInfoChanged()

virtual void OnOfficialAccountInfoChanged ( const V2TIMOfficialAccountInfo info)
inlinevirtual

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

◆ OnMyFollowingListChanged()

virtual void OnMyFollowingListChanged ( const V2TIMUserFullInfoVector userInfoList,
bool  isAdd 
)
inlinevirtual

关注列表变更通知

◆ OnMyFollowersListChanged()

virtual void OnMyFollowersListChanged ( const V2TIMUserFullInfoVector userInfoList,
bool  isAdd 
)
inlinevirtual

粉丝列表变更通知

◆ OnMutualFollowersListChanged()

virtual void OnMutualFollowersListChanged ( const V2TIMUserFullInfoVector userInfoList,
bool  isAdd 
)
inlinevirtual

互关列表变更通知