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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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