|
protected |
Callback definition on get friend list successfully.
|
protected |
Callback definition on get specified friends information successfully.
|
protected |
Callback definition for friend related operation.
|
protected |
Callback definition for friend list related operation.
|
protected |
Callback definition for check relation type.
|
protected |
Callback definition on get friend groups successfully.
|
protected |
Callback definition on get friend application list successfully.
|
protected |
Callback definition on get official account list successfully.
|
protected |
Callback definition for following related operation.
|
protected |
Callback definition on get my following related user info list successfully.
|
protected |
Callback definition on get follow count info of specified user successfully.
|
protected |
Callback definition for check follow type of specified user successfully.
|
protected |
|
protected |
|
protected |
Enumeration definition of relation type.
|
protected |
|
protected |
Enumeration definition of follow type.
- (void) addFriendListener: | (addFriendListener(listener:)) | NS_SWIFT_NAME |
1.1 Add the relationship chain listener
- (void) removeFriendListener: | (removeFriendListener(listener:)) | NS_SWIFT_NAME |
1.2 Remove the relationship chain listener
- (void) setFriendListener: | (id< V2TIMFriendshipListener >) | listener |
Set the relationship chain listener
It is deprecated and discouraged to call this function. Please call APIs ref addFriendListener and removeFriendListener instead.
- (void) getFriendList: | (V2TIMFriendInfoListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.1 Get the friend list
- (void) getFriendsInfo: | (NSArray< NSString * > *) | userIDList | |
succ: | (V2TIMFriendInfoResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.2 Get the profiles of specified friends
userIDList | List of friends' userIDs
|
- (void) setFriendInfo: | (V2TIMFriendInfo *) | info | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.3 Set the profile of a specified friend
- (void) searchFriends: | (V2TIMFriendSearchParam *) | searchParam | |
succ: | (V2TIMFriendInfoResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.4 Search for friends (supported only in Chat Premium 5.4.666 and later versions)
- (void) addFriend: | (V2TIMFriendAddApplication *) | application | |
succ: | (V2TIMFriendOperationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.5 Add a friend
- (void) deleteFromFriendList: | (NSArray *) | userIDList | |
deleteType: | (V2TIMFriendType) | deleteType | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.6 Delete friends
userIDList | List of the friend userIDs to be deleted
|
deleteType | Deletion type
|
- (void) checkFriend: | (NSArray< NSString * > *) | userIDList | |
checkType: | (V2TIMFriendType) | checkType | |
succ: | (V2TIMFriendCheckResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
2.7 Check your relationships with specified users
userIDList | List of the userIDs to be checked |
checkType | Check type (one-way or two-way friend check) |
succ | Callback on success |
fail | Callback on fail |
- (void) getFriendApplicationList: | (V2TIMFriendApplicationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.1 Get the friend request list
- (void) acceptFriendApplication: | (V2TIMFriendApplication *) | application | |
type: | (V2TIMFriendAcceptType) | acceptType | |
succ: | (V2TIMFriendOperationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.2 Accept friend requests
application | Friend request information, which will be returned when calling getFriendApplicationList is successful |
acceptType | Build one-way or two-way friend relationships
|
- (void) acceptFriendApplication: | (V2TIMFriendApplication *) | application | |
type: | (V2TIMFriendAcceptType) | acceptType | |
remark: | (NSString *) | remark | |
succ: | (V2TIMFriendOperationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.3 Accept friend requests and set a remark
application | Friend request information, which will be returned when calling getFriendApplicationList is successful |
acceptType | Build one-way or two-way friend relationships
|
remark | Friend remark,maximum 96 bytes |
- (void) refuseFriendApplication: | (V2TIMFriendApplication *) | application | |
succ: | (V2TIMFriendOperationResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.4 Reject friend requests
application | Friend request information, which will be returned when calling getFriendApplicationList is successful |
- (void) deleteFriendApplication: | (V2TIMFriendApplication *) | application | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.5 Delete friend requests
application | Friend request information, which will be returned when calling getFriendApplicationList is successful |
- (void) setFriendApplicationRead: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
3.6 Set a friend request as read
- (void) addToBlackList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
4.1 Add users to the blocklist
- (void) deleteFromBlackList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
4.2 Delete users from the blocklist
- (void) getBlackList: | (V2TIMFriendInfoListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
4.3 Get the blocklist
- (void) createFriendGroup: | (NSString *) | groupName | |
userIDList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.1 Create a friend group
groupName | Friend group name |
userIDList | List of the friend userIDs to be added to the friend group |
- (void) getFriendGroupList: | (NSArray *) | groupNameList | |
succ: | (V2TIMFriendGroupListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.2 Get friend group information
groupNameList | List of the names of the friend groups whose information is to be obtained. If null is passed in, the information of all friend groups is obtained. |
- (void) deleteFriendGroup: | (NSArray *) | groupNameList | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.3 Delete friend groups
- (void) renameFriendGroup: | (NSString *) | oldName | |
newName: | (NSString *) | newName | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.4 Modify the name of a friend group
- (void) addFriendsToFriendGroup: | (NSString *) | groupName | |
userIDList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.5 Add friends to a friend group
- (void) deleteFriendsFromFriendGroup: | (NSString *) | groupName | |
userIDList: | (NSArray *) | userIDList | |
succ: | (V2TIMFriendOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
5.6 Delete friends from a friend group
- (void) subscribeOfficialAccount: | (NSString *) | officialAccountID | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
6.1 Subscribe to an official account.(supported only in 7.6 and later versions)
- (void) unsubscribeOfficialAccount: | (NSString *) | officialAccountID | |
succ: | (V2TIMSucc) | succ | |
fail: | (V2TIMFail) | fail | |
6.2 Unsubscribe from an official account..(supported only in 7.6 and later versions)
- (void) getOfficialAccountsInfo: | (NSArray *) | officialAccountIDList | |
succ: | (V2TIMOfficialAccountInfoResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
6.3 Get a list of official accounts.(supported only in 7.6 and later versions)
- (void) followUser: | (NSArray< NSString * > *) | userIDList | |
succ: | (V2TIMFollowOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
7.1 Follow users (supported only in Chat Premium 7.8 and later versions)
- (void) unfollowUser: | (NSArray< NSString * > *) | userIDList | |
succ: | (V2TIMFollowOperationResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
7.2 Unfollow users (supported only in Chat Premium 7.8 and later versions)
- (void) getMyFollowingList: | (NSString *) | nextCursor | |
succ: | (V2TIMUserInfoResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
7.3 Get a list of the users I follow (supported only in Chat Premium 7.8 and later versions)
nextCursor | Pulling-by-page flag. It can be set to nil or "" when the information is pulled for the first time. If the API is called successfully and nextCursor returned by the callback is not @"", the results are paginated. The value of this field should be passed in for the next pulling until nextCursor becomes @"". |
- (void) getMyFollowersList: | (NSString *) | nextCursor | |
succ: | (V2TIMUserInfoResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
7.4 Get a list of my followers (supported only in Chat Premium 7.8 and later versions)
nextCursor | Pulling-by-page flag. It can be set to nil or "" when the information is pulled for the first time. If the API is called successfully and nextCursor returned by the callback is not @"", the results are paginated. The value of this field should be passed in for the next pulling until nextCursor becomes @"". |
- (void) getMutualFollowersList: | (NSString *) | nextCursor | |
succ: | (V2TIMUserInfoResultSucc) | succ | |
fail: | (V2TIMFail) | fail | |
7.5 Get a list of my mutual followers (supported only in Chat Premium 7.8 and later versions)
nextCursor | Pulling-by-page flag. It can be set to nil or "" when the information is pulled for thefirst time. If the API is called successfully and nextCursor returned by the callback is not @"", the results are paginated. The value of this field should be passed in for the next pulling until nextCursor becomes @"". |
- (void) getUserFollowInfo: | (NSArray *) | userIDList | |
succ: | (V2TIMFollowInfoResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
7.6 Get the follow info of specified users (supported only in Chat Premium 7.8 and later versions)
- (void) checkFollowType: | (NSArray< NSString * > *) | userIDList | |
succ: | (V2TIMFollowTypeCheckResultListSucc) | succ | |
fail: | (V2TIMFail) | fail | |
7.7 Check follow type of specified users (supported only in Chat Premium 7.8 and later versions)