deleteFriendApplication
Introduction
Delete a friend application, without any processes.
Parameter details
Parameter name |
Parameter type |
Required |
Platform |
Description |
type |
FriendApplicationTypeEnum |
yes |
All |
The type of application. |
userID |
String |
yes |
All |
The ID of the user application to delete. |
Returned template
V2TimCallback
{
code : int
desc : String
}
Return value details
name |
type |
description |
code |
int |
Request result: Error codes. 0 means success. |
desc |
String |
The description of the error. It will be empty if success. |
Code example
V2TimCallback deleteFriendApplicationRes = await TencentImSDKPlugin
.v2TIMManager
.getFriendshipManager()
.deleteFriendApplication(
type: FriendApplicationTypeEnum.V2TIM_FRIEND_APPLICATION_BOTH,
userID: "",
);
if (deleteFriendApplicationRes.code == 0) {
}