getFriendshipManager
Introduction
Get the entry point for those friendship-related methods.
The entry point for those friendship-related methods.
Parameter details
This API has no parameters
Returned template
V2TIMFriendshipManager
Return value details
name | type | description |
---|---|---|
V2TIMFriendshipManager | V2TIMFriendshipManager | The entry point for those friendship-related methods. |
Code example
V2TimValueCallback<V2TimFriendOperationResult> addFriendRes =
await TencentImSDKPlugin.v2TIMManager
.getFriendshipManager()
.addFriend(
userID: "userID",
remark: "",
friendGroup: "",
addWording: "",
addSource: "",
addType: FriendTypeEnum.V2TIM_FRIEND_TYPE_BOTH,
);
if (addFriendRes.code == 0) {
}