FriendshipManager class
Methods
-
acceptFriendApplication({required String uid, String? handleMsg, String? operationID})
→ Future
-
Accept application of be friend
接受好友请求
-
addBlacklist({required String uid, String? operationID})
→ Future
-
Add friends to blacklist
加入黑名单
uid被加入黑名单的好友ID
-
addFriend({required String uid, String? reason, String? operationID})
→ Future
-
Send an friend application
发送一个好友请求,需要对方调用同意申请才能成为好友。
uid 被邀请的用户ID
reason 说明
-
checkFriend({required List<String> uidList, String? operationID})
→ Future<List<FriendshipInfo>>
-
Determine if there is a friendship by userId
检查友好关系
-
deleteFriend({required String uid, String? operationID})
→ Future
-
Dissolve friendship from friend list
删除好友
-
getBlacklist({String? operationID})
→ Future<List<UserInfo>>
-
Find all blacklist
获取黑名单列表
-
getFriendList({String? operationID})
→ Future<List<UserInfo>>
-
Find all friends including those who have been added to the blacklist
获取好友列表包含已拉入黑名单的好友
-
getFriendListMap({String? operationID})
→ Future<List>
-
Find all friends including those who have been added to the blacklist
获取好友列表
-
getFriendsInfo({required List<String> uidList, String? operationID})
→ Future<List<UserInfo>>
-
Get friend info by user id
查询好友信息
uidList 好友的userID集合
-
getRecvFriendApplicationList({String? operationID})
→ Future<List<FriendApplicationInfo>>
-
Get someone's request to add me as a friend
获取别人加我为好友的申请
-
getSendFriendApplicationList({String? operationID})
→ Future<List<FriendApplicationInfo>>
-
Get friend requests from me
获取我发出的好友申请
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
refuseFriendApplication({required String uid, String? handleMsg, String? operationID})
→ Future
-
Refuse application of be friend
拒绝好友请求
-
removeBlacklist({required String uid, String? operationID})
→ Future
-
Remove from blacklist
从黑名单移除
-
Modify friend remark name
设置好友备注
uid 好友的userID
remark 好友的备注
-
setFriendshipListener(OnFriendshipListener listener)
→ Future
-
Set up a friend relationship listener
好友关系监听
-
toString()
→ String
-
A string representation of this object.
inherited