V2TIMFriendshipManager class Manager

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

setFriendListener设置关系链监听器

getFriendList获取好友列表

getFriendsInfo获取指定好友资料

setFriendInfo设置指定好友资料

addFriend添加好友

deleteFromFriendList删除好友

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

getFriendApplicationList获取好友申请列表

acceptFriendApplication同意好友申请

refuseFriendApplication拒绝好友申请

deleteFriendApplication删除好友申请

setFriendApplicationRead设置好友申请已读

addToBlackList添加用户到黑名单

deleteFromBlackList把用户从黑名单中删除

getBlackList获取黑名单列表

createFriendGroup新建好友分组

getFriendGroups获取分组信息

deleteFriendGroup删除好友分组

renameFriendGroup修改好友分组的名称

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

deleteFriendsFromFriendGroup从好友分组中删除好友

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 int responseType, required int type, required String userID}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
同意好友申请
addFriend({required String userID, String? remark, String? friendGroup, String? addWording, String? addSource, required int addType}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
添加好友
addFriendsToFriendGroup({required String groupName, required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
添加好友到一个好友分组
addToBlackList({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
添加用户到黑名单
checkFriend(List<String> userIDList, int checkType) Future<V2TimValueCallback<List<V2TimFriendCheckResult>>>
检查指定用户的好友关系
createFriendGroup({required String groupName, List<String>? userIDList}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
新建好友分组
deleteFriendApplication({required int 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 int deleteType}) Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
删除好友
getBlackList() Future<V2TimValueCallback<List<V2TimFriendInfo>>>
获取黑名单列表
getFriendApplicationList() Future<V2TimValueCallback<V2TimFriendApplicationResult>>
获取好友申请列表
getFriendGroups({required List<String> groupNameList}) Future<V2TimValueCallback<List<V2TimFriendGroup>>>
获取分组信息
getFriendList() Future<V2TimValueCallback<List<V2TimFriendInfo>>>
获取好友列表
getFriendsInfo({required List<String> userIDList}) Future<V2TimValueCallback<List<V2TimFriendInfoResult>>>
获取指定好友资料
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refuseFriendApplication({required int type, required String userID}) Future<V2TimValueCallback<V2TimFriendOperationResult>>
拒绝好友申请
renameFriendGroup({required String oldName, required String newName}) Future<V2TimCallback>
修改好友分组的名称
setFriendApplicationRead() Future<V2TimCallback>
设置好友申请已读
setFriendInfo({required String userID, String? friendRemark, Map<String, String>? friendCustomInfo}) Future<V2TimCallback>
设置指定好友资料
setFriendListener({required Function listener}) → void
设置关系链监听器
toString() String
A string representation of this object.
inherited

Operators

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