FriendshipManager class

Constructors

FriendshipManager(MethodChannel _channel)

Properties

hashCode int
The hash code for this object.
no setterinherited
listener OnFriendshipListener
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

acceptFriendApplication({required String uid, String? handleMsg, String? operationID}) Future
接受好友请求 uid 用户ID handleMsg备注说明
addBlacklist({required String uid, String? operationID}) Future
加入黑名单 uid 被加入黑名单的好友ID
addFriend({required String uid, String? reason, String? operationID}) Future
发送一个好友请求,需要对方调用同意申请才能成为好友。 uid 被邀请的用户ID reason 备注说明
checkFriend({required List<String> uidList, String? operationID}) Future<List<FriendshipInfo>>
检查友好关系 uidList userID列表
deleteFriend({required String uid, String? operationID}) Future
删除好友 uid 用户ID
getBlacklist({String? operationID}) Future<List<UserInfo>>
获取黑名单列表
getFriendList({String? operationID}) Future<List<UserInfo>>
获取好友列表,返回的列表包含了已拉入黑名单的好友
getFriendListMap({String? operationID}) Future<List>
获取好友列表,返回的列表包含了已拉入黑名单的好友
getFriendsInfo({required List<String> uidList, String? operationID}) Future<List<UserInfo>>
查询好友信息 uidList userID集合
getRecvFriendApplicationList({String? operationID}) Future<List<FriendApplicationInfo>>
获取别人加我为好友的申请
getSendFriendApplicationList({String? operationID}) Future<List<FriendApplicationInfo>>
获取我发出的好友申请
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refuseFriendApplication({required String uid, String? handleMsg, String? operationID}) Future
拒绝好友请求 uid 用户ID handleMsg备注说明
removeBlacklist({required String uid, String? operationID}) Future
从黑名单移除 uid 用户ID
searchFriends({List<String> keywordList = const [], bool isSearchUserID = false, bool isSearchNickname = false, bool isSearchRemark = false, String? operationID}) Future<List<FriendInfo>>
查好友 keywordList 搜索关键词,目前仅支持一个关键词搜索,不能为空 isSearchUserID 是否以关键词搜索好友ID(注:不可以同时为false),为空默认false isSearchNickname 是否以关键词搜索昵称,为空默认false isSearchRemark 是否以关键词搜索备注名,为空默认false
setFriendRemark({required String uid, required String remark, String? operationID}) Future
设置好友备注 uid 好友的userID remark 好友的备注
setFriendshipListener(OnFriendshipListener listener) Future
好友关系监听
toString() String
A string representation of this object.
inherited

Operators

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