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 userID, String? handleMsg, String? operationID}) Future
Accept Friend Request userID User ID handleMsg Remark description
addBlacklist({required String userID, String? ex, String? operationID}) Future
Add to Blacklist userID Friend's ID to be added to the blacklist
addFriend({required String userID, String? reason, String? operationID}) Future
Send a Friend Request, the other party needs to accept the request to become friends. userID User ID to be invited reason Remark description
checkFriend({required List<String> userIDList, String? operationID}) Future<List<FriendshipInfo>>
Check Friendship Status userIDList List of user IDs
deleteFriend({required String userID, String? operationID}) Future
Delete Friend userID User ID
getBlacklist({String? operationID}) Future<List<BlacklistInfo>>
Get Blacklist
getFriendApplicationListAsApplicant({String? operationID}) Future<List<FriendApplicationInfo>>
Get Friend Requests Sent by Me
getFriendApplicationListAsRecipient({String? operationID}) Future<List<FriendApplicationInfo>>
Get Friend Requests Sent to Me
getFriendList({String? operationID}) Future<List<FullUserInfo>>
Get Friend List, including friends who have been put into the blacklist
getFriendListMap({String? operationID}) Future<List>
Get Friend List, including friends who have been put into the blacklist (returns a map)
getFriendsInfo({required List<String> userIDList, String? operationID}) Future<List<FullUserInfo>>
Query Friend Information userIDList List of user IDs
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refuseFriendApplication({required String userID, String? handleMsg, String? operationID}) Future
Reject Friend Request userID User ID handleMsg Remark description
removeBlacklist({required String userID, String? operationID}) Future
Remove from Blacklist userID User ID
searchFriends({List<String> keywordList = const [], bool isSearchUserID = false, bool isSearchNickname = false, bool isSearchRemark = false, String? operationID}) Future<List<SearchFriendsInfo>>
Search for Friends keywordList Search keywords, currently supports only one keyword search, cannot be empty isSearchUserID Whether to search for friend IDs with keywords (note: cannot be false at the same time), defaults to false if empty isSearchNickname Whether to search by nickname with keywords, defaults to false if empty isSearchRemark Whether to search by remark name with keywords, defaults to false if empty
setFriendRemark({required String userID, required String remark, String? operationID}) Future
Set Friend's Remark userID Friend's userID remark Friend's remark
setFriendsEx(List<String> friendIDs, {String? ex, String? operationID}) Future<String?>
setFriendshipListener(OnFriendshipListener listener) Future
Friend Relationship Listener
toString() String
A string representation of this object.
inherited

Operators

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