V2TIMFriendshipManager class Manager

关系链接口,包含了好友的添加和删除,黑名单的添加和删除等逻辑

setFriendListener设置关系链监听器

getFriendList获取好友列表

getFriendsInfo获取指定好友资料

setFriendInfo设置指定好友资料

addFriend添加好友

deleteFromFriendList删除好友

checkFriend检查指定用户的好友关系

getFriendApplicationList获取好友申请列表

acceptFriendApplication同意好友申请

refuseFriendApplication拒绝好友申请

deleteFriendApplication删除好友申请

setFriendApplicationRead设置好友申请已读

addToBlackList添加用户到黑名单

deleteFromBlackList把用户从黑名单中删除

getBlackList获取黑名单列表

createFriendGroup新建好友分组

getFriendGroups获取分组信息

deleteFriendGroup删除好友分组

renameFriendGroup修改好友分组的名称

addFriendsToFriendGroup添加好友到一个好友分组

deleteFriendsFromFriendGroup从好友分组中删除好友

Constructors

V2TIMFriendshipManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acceptFriendApplication({required FriendResponseTypeEnum responseType, required FriendApplicationTypeEnum type, required String userID}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
同意好友申请
addFriend({required String userID, String? remark, String? friendGroup, String? addWording, String? addSource, required FriendTypeEnum addType}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
添加好友
addFriendListener({required V2TimFriendshipListener listener}) Future<void>
addFriendsToFriendGroup({required String groupName, required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
添加好友到一个好友分组
addToBlackList({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
添加用户到黑名单
checkFollowType({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFollowTypeCheckResult>>>
检查指定用户的关注类型
checkFriend({required List<String> userIDList, required FriendTypeEnum checkType}) Future<V2TimValueCallback<List<V2TimFriendCheckResult>>>
检查指定用户的好友关系
createFriendGroup({required String groupName, List<String>? userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
新建好友分组
deleteFriendApplication({required FriendApplicationTypeEnum type, required String userID}) Future<V2TimCallback>
删除好友申请
deleteFriendGroup({required List<String> groupNameList}) Future<V2TimCallback>
删除好友分组
deleteFriendsFromFriendGroup({required String groupName, required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
从好友分组中删除好友
deleteFromBlackList({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
把用户从黑名单中删除
deleteFromFriendList({required List<String> userIDList, required FriendTypeEnum deleteType}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
删除好友
followUser({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFollowOperationResult>>>
关注用户
getBlackList() Future<V2TimValueCallback<List<V2TimFriendInfo>>>
获取黑名单列表
getFriendApplicationList() Future<V2TimValueCallback<V2TimFriendApplicationResult>>
获取好友申请列表
getFriendGroups({List<String>? groupNameList}) Future<V2TimValueCallback<List<V2TimFriendGroup>>>
获取分组信息
getFriendList() Future<V2TimValueCallback<List<V2TimFriendInfo>>>
获取好友列表
getFriendsInfo({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendInfoResult>>>
获取指定好友资料
getMutualFollowersList({required String nextCursor}) Future<V2TimValueCallback<V2TimUserInfoResult>>
获取我的互关列表
getMyFollowersList({required String nextCursor}) Future<V2TimValueCallback<V2TimUserInfoResult>>
获取关注我的列表
getMyFollowingList({required String nextCursor}) Future<V2TimValueCallback<V2TimUserInfoResult>>
获取我的关注列表
getOfficialAccountsInfo({required List<String> officialAccountIDList}) Future<V2TimValueCallback<List<V2TimOfficialAccountInfoResult>>>
获取公众号列表
getUserFollowInfo({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFollowInfo>>>
获取指定用户的 关注/粉丝/互关 数量信息
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refuseFriendApplication({required FriendApplicationTypeEnum type, required String userID}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
拒绝好友申请
removeFriendListener({V2TimFriendshipListener? listener}) Future<void>
renameFriendGroup({required String oldName, required String newName}) Future<V2TimCallback>
修改好友分组的名称
searchFriends({required V2TimFriendSearchParam searchParam}) Future<V2TimValueCallback<List<V2TimFriendInfoResult>>>
搜索好友
setFriendApplicationRead() Future<V2TimCallback>
设置好友申请已读
setFriendInfo({required String userID, String? friendRemark, Map<String, String>? friendCustomInfo}) Future<V2TimCallback>
设置指定好友资料
setFriendListener({required V2TimFriendshipListener listener}) Future<void>
设置关系链监听器
subscribeOfficialAccount({required String officialAccountID}) Future<V2TimCallback>
订阅公众号
toString() String
A string representation of this object.
inherited
unfollowUser({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFollowOperationResult>>>
取消关注用户
unsubscribeOfficialAccount({required String officialAccountID}) Future<V2TimCallback>
取消订阅公众号

Operators

operator ==(Object other) bool
The equality operator.
inherited