V2TIMFriendshipManager class Null safety Manager
Relationship chain APIs, including the APIs for adding and deleting friends as well as blocklisting/unblocklisting
setFriendListenerSet the relationship chain listener
getFriendListGet the friend list
getFriendsInfoGet the profiles of specified friends
setFriendInfoSet the profile of a specified friend
addFriendAdd a friend
deleteFromFriendListDelete friends
checkFriendCheck your relationship with a specified user
getFriendApplicationListGet the friend request list
acceptFriendApplicationAccept a friend request
refuseFriendApplicationReject a friend request
deleteFriendApplicationDelete a friend request
setFriendApplicationReadSet a friend request as read
addToBlackListAdd a user to the blocklist
deleteFromBlackListRemove a user from the blocklist
getBlackListGet the blocklist
createFriendGroupCreate a friend list
getFriendGroupsGet friend list information
deleteFriendGroupDelete friend lists
renameFriendGroupModify the name of a friend list
addFriendsToFriendGroupAdd friends to a friend list
deleteFriendsFromFriendGroupDelete friends from a friend list
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(
{required FriendResponseTypeEnum responseType, required FriendApplicationTypeEnum type, required String userID}) → Future< V2TimValueCallback< V2TimFriendOperationResult> > - Accept a friend request [...]
-
addFriend(
{required String userID, String? remark, String? friendGroup, String? addWording, String? addSource, required FriendTypeEnum addType}) → Future< V2TimValueCallback< V2TimFriendOperationResult> > - Add a friend
-
addFriendListener(
{required V2TimFriendshipListener listener}) → Future< void> -
addFriendsToFriendGroup(
{required String groupName, required List< String> userIDList}) → Future<V2TimValueCallback< List< >V2TimFriendOperationResult> > - Add friends to a friend list
-
addToBlackList(
{required List< String> userIDList}) → Future<V2TimValueCallback< List< >V2TimFriendOperationResult> > - Add a user to the blocklist
-
checkFriend(
{required List< String> userIDList, required FriendTypeEnum checkType}) → Future<V2TimValueCallback< List< >V2TimFriendCheckResult> > - Check your relationship with a specified user [...]
-
createFriendGroup(
{required String groupName, List< String> ? userIDList}) → Future<V2TimValueCallback< List< >V2TimFriendOperationResult> > - Create a friend list [...]
-
deleteFriendApplication(
{required FriendApplicationTypeEnum type, required String userID}) → Future< V2TimCallback> - Delete a friend request [...]
-
deleteFriendGroup(
{required List< String> groupNameList}) → Future<V2TimCallback> - Delete friend lists
-
deleteFriendsFromFriendGroup(
{required String groupName, required List< String> userIDList}) → Future<V2TimValueCallback< List< >V2TimFriendOperationResult> > - Delete friends from a friend list
-
deleteFromBlackList(
{required List< String> userIDList}) → Future<V2TimValueCallback< List< >V2TimFriendOperationResult> > - Remove a user from the blocklist
-
deleteFromFriendList(
{required List< String> userIDList, required FriendTypeEnum deleteType}) → Future<V2TimValueCallback< List< >V2TimFriendOperationResult> > - Delete friends [...]
-
getBlackList(
) → Future< V2TimValueCallback< List< >V2TimFriendInfo> > - Get the blocklist
-
getFriendApplicationList(
) → Future< V2TimValueCallback< V2TimFriendApplicationResult> > - Get the friend request list
-
getFriendGroups(
{List< String> ? groupNameList}) → Future<V2TimValueCallback< List< >V2TimFriendGroup> > - Get friend list information [...]
-
getFriendList(
) → Future< V2TimValueCallback< List< >V2TimFriendInfo> > - Get the friend list
-
getFriendsInfo(
{required List< String> userIDList}) → Future<V2TimValueCallback< List< >V2TimFriendInfoResult> > - Get the profiles of specified friends [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
refuseFriendApplication(
{required FriendApplicationTypeEnum type, required String userID}) → Future< V2TimValueCallback< V2TimFriendOperationResult> > - Reject a friend request [...]
-
removeFriendListener(
{V2TimFriendshipListener? listener}) → Future< void> -
renameFriendGroup(
{required String oldName, required String newName}) → Future< V2TimCallback> - Modify the name of a friend list [...]
-
searchFriends(
{required V2TimFriendSearchParam searchParam}) → Future< V2TimValueCallback< List< >V2TimFriendInfoResult> > - search for friends [...]
-
setFriendApplicationRead(
) → Future< V2TimCallback> - Set a friend request as read
-
setFriendInfo(
{required String userID, String? friendRemark, Map< String, String> ? friendCustomInfo}) → Future<V2TimCallback> - Set the profile of a specified friend
-
setFriendListener(
{required V2TimFriendshipListener listener}) → Future< void> - Set the relationship chain listener
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited