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

Public 成员函数

void onFriendApplicationListAdded (List< V2TIMFriendApplication > applicationList)
 
void onFriendApplicationListDeleted (List< String > userIDList)
 
void onFriendApplicationListRead ()
 
void onFriendListAdded (List< V2TIMFriendInfo > users)
 
void onFriendListDeleted (List< String > userList)
 
void onBlackListAdd (List< V2TIMFriendInfo > infoList)
 
void onBlackListDeleted (List< String > userList)
 
void onFriendInfoChanged (List< V2TIMFriendInfo > infoList)
 
void onFriendGroupCreated (String groupName, List< V2TIMFriendInfo > friendInfoList)
 
void onFriendGroupDeleted (List< String > groupNameList)
 
void onFriendGroupNameChanged (String oldGroupName, String newGroupName)
 
void onFriendsAddedToGroup (String groupName, List< V2TIMFriendInfo > friendInfoList)
 
void onFriendsDeletedFromGroup (String groupName, List< String > friendIDList)
 
void onOfficialAccountSubscribed (V2TIMOfficialAccountInfo officialAccountInfo)
 
void onOfficialAccountUnsubscribed (String officialAccountID)
 
void onOfficialAccountDeleted (String officialAccountID)
 
void onOfficialAccountInfoChanged (V2TIMOfficialAccountInfo officialAccountInfo)
 
void onMyFollowingListChanged (List< V2TIMUserFullInfo > userInfoList, boolean isAdd)
 
void onMyFollowersListChanged (List< V2TIMUserFullInfo > userInfoList, boolean isAdd)
 
void onMutualFollowersListChanged (List< V2TIMUserFullInfo > userInfoList, boolean isAdd)
 

成员函数说明

◆ onFriendApplicationListAdded()

void onFriendApplicationListAdded ( List< V2TIMFriendApplication applicationList)
inline

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

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

◆ onFriendApplicationListDeleted()

void onFriendApplicationListDeleted ( List< String >  userIDList)
inline

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

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

◆ onFriendApplicationListRead()

void onFriendApplicationListRead ( )
inline

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

◆ onFriendListAdded()

void onFriendListAdded ( List< V2TIMFriendInfo users)
inline

好友新增通知

◆ onFriendListDeleted()

void onFriendListDeleted ( List< String >  userList)
inline

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

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

◆ onBlackListAdd()

void onBlackListAdd ( List< V2TIMFriendInfo infoList)
inline

黑名单新增通知

◆ onBlackListDeleted()

void onBlackListDeleted ( List< String >  userList)
inline

黑名单删除通知

◆ onFriendInfoChanged()

void onFriendInfoChanged ( List< V2TIMFriendInfo infoList)
inline

好友资料更新通知

◆ onFriendGroupCreated()

void onFriendGroupCreated ( String  groupName,
List< V2TIMFriendInfo friendInfoList 
)
inline

好友分组被创建

◆ onFriendGroupDeleted()

void onFriendGroupDeleted ( List< String >  groupNameList)
inline

好友分组被删除

◆ onFriendGroupNameChanged()

void onFriendGroupNameChanged ( String  oldGroupName,
String  newGroupName 
)
inline

好友分组名变更

◆ onFriendsAddedToGroup()

void onFriendsAddedToGroup ( String  groupName,
List< V2TIMFriendInfo friendInfoList 
)
inline

好友分组新增好友

◆ onFriendsDeletedFromGroup()

void onFriendsDeletedFromGroup ( String  groupName,
List< String >  friendIDList 
)
inline

好友分组删除好友

◆ onOfficialAccountSubscribed()

void onOfficialAccountSubscribed ( V2TIMOfficialAccountInfo  officialAccountInfo)
inline

订阅公众号通知

参数
officialAccountInfo订阅的公众号资料

◆ onOfficialAccountUnsubscribed()

void onOfficialAccountUnsubscribed ( String  officialAccountID)
inline

取消订阅公众号通知

参数
officialAccountID取消订阅的公众号 ID

◆ onOfficialAccountDeleted()

void onOfficialAccountDeleted ( String  officialAccountID)
inline

订阅的公众号被删除通知

参数
officialAccountID删除的公众号 ID

◆ onOfficialAccountInfoChanged()

void onOfficialAccountInfoChanged ( V2TIMOfficialAccountInfo  officialAccountInfo)
inline

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

参数
officialAccountInfo更新后的公众号资料

◆ onMyFollowingListChanged()

void onMyFollowingListChanged ( List< V2TIMUserFullInfo userInfoList,
boolean  isAdd 
)
inline

关注列表变更通知

◆ onMyFollowersListChanged()

void onMyFollowersListChanged ( List< V2TIMUserFullInfo userInfoList,
boolean  isAdd 
)
inline

粉丝列表变更通知

◆ onMutualFollowersListChanged()

void onMutualFollowersListChanged ( List< V2TIMUserFullInfo userInfoList,
boolean  isAdd 
)
inline

互关列表变更通知