构造函数 | |
(void) | - addFriendListener: |
(void) | - removeFriendListener: |
(void) | - setFriendListener: |
(void) | - getFriendList:fail: |
(void) | - getFriendsInfo:succ:fail: |
(void) | - setFriendInfo:succ:fail: |
(void) | - searchFriends:succ:fail: |
(void) | - addFriend:succ:fail: |
(void) | - deleteFromFriendList:deleteType:succ:fail: |
(void) | - checkFriend:checkType:succ:fail: |
(void) | - getFriendApplicationList:fail: |
(void) | - acceptFriendApplication:type:succ:fail: |
(void) | - refuseFriendApplication:succ:fail: |
(void) | - deleteFriendApplication:succ:fail: |
(void) | - setFriendApplicationRead:fail: |
(void) | - addToBlackList:succ:fail: |
(void) | - deleteFromBlackList:succ:fail: |
(void) | - getBlackList:fail: |
(void) | - createFriendGroup:userIDList:succ:fail: |
(void) | - getFriendGroupList:succ:fail: |
(void) | - deleteFriendGroup:succ:fail: |
(void) | - renameFriendGroup:newName:succ:fail: |
(void) | - addFriendsToFriendGroup:userIDList:succ:fail: |
(void) | - deleteFriendsFromFriendGroup:userIDList:succ:fail: |
|
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) refuseFriendApplication: | (V2TIMFriendApplication *) | application | |
succ: | (V2TIMFriendOperationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.3 拒绝好友申请
application | 好友申请信息,getFriendApplicationList 成功后会返回 |
- (void) deleteFriendApplication: | (V2TIMFriendApplication *) | application | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.4 删除好友申请
application | 好友申请信息,getFriendApplicationList 成功后会返回 |
- (void) setFriendApplicationRead: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.5 设置好友申请已读
- (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 从好友分组中删除好友