Protocol
V2TIMFriendshipListener
public protocol V2TIMFriendshipListener: AnyObject
Definition of V2TIMFriendshipListener
Relationships
Conforms To
AnyObject
Requirements
onFriendApplicationListAdded(applicationList:)
func onFriendApplicationListAdded(applicationList: Array<V2TIMFriendApplication>)
New friend request notification. You will receive this callback in the following cases:
- You send a friend request to others.
- You receive a friend request from others.
onFriendApplicationListDeleted(userIDList:)
func onFriendApplicationListDeleted(userIDList: Array<String>)
Friend request deletion notification. You will receive this callback in the following cases:
- You call deleteFriendApplication to proactively delete a friend request.
- You call refuseFriendApplication to reject a friend request.
- You call acceptFriendApplication to accept a friend request and the acceptance type is V2TIM_FRIEND_ACCEPT_AGREE.
- Your friend request is rejected by others.
onFriendApplicationListRead()
func onFriendApplicationListRead()
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(infoList:)
func onFriendListAdded(infoList: Array<V2TIMFriendInfo>)
New friend notification
onFriendListDeleted(userIDList:)
func onFriendListDeleted(userIDList: Array<String>)
Friend deletion notification. You will receive this callback in the following cases:
- You delete a friend (received for one-way or two-way friend deletion).
- You are deleted by a friend (received for two-way friend deletion).
onBlackListAdded(infoList:)
func onBlackListAdded(infoList: Array<V2TIMFriendInfo>)
New blocklist notification
onBlackListDeleted(userIDList:)
func onBlackListDeleted(userIDList: Array<String>)
Blocklist deletion notification
onFriendProfileChanged(infoList:)
func onFriendProfileChanged(infoList: Array<V2TIMFriendInfo>)
Friend profile update notification
onFriendGroupCreated(groupName:friendInfoList:)
func onFriendGroupCreated(groupName: String, friendInfoList: Array<V2TIMFriendInfo>)
Notification of friend group creation
onFriendGroupDeleted(groupNameList:)
func onFriendGroupDeleted(groupNameList: Array<String>)
Notification of friend group deletion
onFriendGroupNameChanged(oldGroupName:newGroupName:)
func onFriendGroupNameChanged(oldGroupName: String, newGroupName: String)
Notification of friend group name changes
onFriendsAddedToGroup(groupName:friendInfoList:)
func onFriendsAddedToGroup(groupName: String, friendInfoList: Array<V2TIMFriendInfo>)
Notification of adding friends to a friend group
onFriendsDeletedFromGroup(groupName:friendIDList:)
func onFriendsDeletedFromGroup(groupName: String, friendIDList: Array<String>)
Notification of deleting friends from a friend group
onOfficialAccountSubscribed(officialAccountInfo:)
func onOfficialAccountSubscribed(officialAccountInfo: V2TIMOfficialAccountInfo)
Notification for subscribing to an official account.
onOfficialAccountUnsubscribed(officialAccountID:)
func onOfficialAccountUnsubscribed(officialAccountID: String)
Notification for unsubscribing from an official account.
onOfficialAccountDeleted(officialAccountID:)
func onOfficialAccountDeleted(officialAccountID: String)
Notification for a subscribed official account being deleted.
onOfficialAccountInfoChanged(officialAccountInfo:)
func onOfficialAccountInfoChanged(officialAccountInfo: V2TIMOfficialAccountInfo)
Notification for the updated information of a subscribed official account.
onMyFollowingListChanged(userInfoList:isAdd:)
func onMyFollowingListChanged(userInfoList: Array<V2TIMUserFullInfo>, isAdd: Bool)
Notification of changes to the following list
onMyFollowersListChanged(userInfoList:isAdd:)
func onMyFollowersListChanged(userInfoList: Array<V2TIMUserFullInfo>, isAdd: Bool)
Notification of changes to the followers list
onMutualFollowersListChanged(userInfoList:isAdd:)
func onMutualFollowersListChanged(userInfoList: Array<V2TIMUserFullInfo>, isAdd: Bool)
Notification of changes to the mutual followers list