|
protected |
获取好友列表成功回调
|
protected |
获取指定好友信息成功回调
|
protected |
好友操作成功回调
|
protected |
好友列表操作成功回调
|
protected |
好友检查成功回调
|
protected |
获取群分组列表成功回调
|
protected |
获取好友申请列表成功回调
|
protected |
获取公众号列表成功回调
|
protected |
关注/取关用户操作成功的回调
|
protected |
获取自己 关注/粉丝/互关 列表成功的回调
|
protected |
获取用户关注数量信息成功的回调
|
protected |
用户关注类型检查成功回调
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
- (void) addFriendListener: | (addFriendListener(listener:)) | NS_SWIFT_NAME |
1.1 添加关系链监听器
- (void) removeFriendListener: | (removeFriendListener(listener:)) | NS_SWIFT_NAME |
1.2 移除关系链监听器
- (void) setFriendListener: | (id< V2TIMFriendshipListener >) | listener |
设置关系链监听器(待废弃接口,请使用 addFriendListener 和 removeFriendListener 接口)
- (void) getFriendList: | (V2TIMFriendInfoListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.1 获取好友列表
- (void) getFriendsInfo: | (NSArray< NSString * > *) | userIDList | |
succ: | (V2TIMFriendInfoResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.2 获取指定好友资料
userIDList | 好友 userID 列表
|
- (void) setFriendInfo: | (V2TIMFriendInfo *) | info | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.3 设置指定好友资料
- (void) searchFriends: | (V2TIMFriendSearchParam *) | searchParam | |
succ: | (V2TIMFriendInfoResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
- (void) addFriend: | (V2TIMFriendAddApplication *) | application | |
succ: | (V2TIMFriendOperationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.5 添加好友
- (void) deleteFromFriendList: | (NSArray *) | userIDList | |
deleteType: | (V2TIMFriendType) | deleteType | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.6 删除好友
userIDList | 要删除的好友 userID 列表
|
deleteType | 删除类型(单向好友、双向好友) |
- (void) checkFriend: | (NSArray< NSString * > *) | userIDList | |
checkType: | (V2TIMFriendType) | checkType | |
succ: | (V2TIMFriendCheckResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.7 检查指定用户的好友关系
userIDList | 要检查的 userID 列表 |
checkType | 检查类型 (单向好友检查、双向好友检查) |
succ | 成功后的回调 |
fail | 失败后的回调 |
- (void) getFriendApplicationList: | (V2TIMFriendApplicationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.1 获取好友申请列表
- (void) acceptFriendApplication: | (V2TIMFriendApplication *) | application | |
type: | (V2TIMFriendAcceptType) | acceptType | |
succ: | (V2TIMFriendOperationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.2 同意好友申请
application | 好友申请信息,getFriendApplicationList 成功后会返回 |
acceptType | 建立单向/双向好友关系 |
- (void) acceptFriendApplication: | (V2TIMFriendApplication *) | application | |
type: | (V2TIMFriendAcceptType) | acceptType | |
remark: | (NSString *) | remark | |
succ: | (V2TIMFriendOperationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.3 同意好友申请,并设置备注
application | 好友申请信息,getFriendApplicationList 成功后会返回 |
acceptType | 建立单向/双向好友关系
|
remark | 好友备注 |
- (void) refuseFriendApplication: | (V2TIMFriendApplication *) | application | |
succ: | (V2TIMFriendOperationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.4 拒绝好友申请
application | 好友申请信息,getFriendApplicationList 成功后会返回 |
- (void) deleteFriendApplication: | (V2TIMFriendApplication *) | application | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.5 删除好友申请
application | 好友申请信息,getFriendApplicationList 成功后会返回 |
- (void) setFriendApplicationRead: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.6 设置好友申请已读
- (void) addToBlackList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
4.1 添加用户到黑名单
- (void) deleteFromBlackList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
4.2 把用户从黑名单中删除
- (void) getBlackList: | (V2TIMFriendInfoListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
4.3 获取黑名单列表
- (void) createFriendGroup: | (NSString *) | groupName | |
userIDList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.1 新建好友分组
groupName | 分组名称 |
userIDList | 要添加到分组中的好友 |
- (void) getFriendGroupList: | (NSArray *) | groupNameList | |
succ: | (V2TIMFriendGroupListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.2 获取分组信息
groupNameList | 要获取信息的好友分组名称列表,传入 nil 获得所有分组信息 |
- (void) deleteFriendGroup: | (NSArray *) | groupNameList | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.3 删除好友分组
- (void) renameFriendGroup: | (NSString *) | oldName | |
newName: | (NSString *) | newName | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.4 修改好友分组的名称
- (void) addFriendsToFriendGroup: | (NSString *) | groupName | |
userIDList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.5 添加好友到一个好友分组
- (void) deleteFriendsFromFriendGroup: | (NSString *) | groupName | |
userIDList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.6 从好友分组中删除好友
- (void) subscribeOfficialAccount: | (NSString *) | officialAccountID | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
6.1 订阅公众号(7.6 及其以上版本支持)
- (void) unsubscribeOfficialAccount: | (NSString *) | officialAccountID | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
6.2 取消订阅公众号(7.6 及其以上版本支持)
- (void) getOfficialAccountsInfo: | (NSArray< NSString * > *) | officialAccountIDList | |
succ: | (V2TIMOfficialAccountInfoResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
6.3 获取公众号列表(7.6 及其以上版本支持)
- (void) followUser: | (NSArray< NSString * > *) | userIDList | |
succ: | (V2TIMFollowOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
- (void) unfollowUser: | (NSArray< NSString * > *) | userIDList | |
succ: | (V2TIMFollowOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
- (void) getMyFollowingList: | (NSString *) | nextCursor | |
succ: | (V2TIMUserInfoResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
- (void) getMyFollowersList: | (NSString *) | nextCursor | |
succ: | (V2TIMUserInfoResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
- (void) getMutualFollowersList: | (NSString *) | nextCursor | |
succ: | (V2TIMUserInfoResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
- (void) getUserFollowInfo: | (NSArray *) | userIDList | |
succ: | (V2TIMFollowInfoResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
- (void) checkFollowType: | (NSArray< NSString * > *) | userIDList | |
succ: | (V2TIMFollowTypeCheckResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |