deleteFriendApplication
Introduction
Delete a friend application, without any processes.
Parameter details
Parameter name |
Parameter type |
Required |
Description |
type |
FriendApplicationTypeEnum |
yes |
The type of application. |
userID |
string |
yes |
The ID of the user application to delete. |
Returned template
V2TimValueCallback<V2TimFriendOperationResult>
{
code : number
desc : string
data : {
resultCode : number
resultInfo : string
userID : string
}
}
Return value details
name |
type |
description |
code |
number |
Request result: Error codes. 0 means success. |
desc |
string |
The description of the error. It will be empty if success. |
data |
V2TimFriendOperationResult |
The result of the operation. |
Code example
import {
TencentImSDKPlugin,
FriendApplicationTypeEnum,
} from 'react-native-tim-js';
const deleteFriendApplicationRes = await TencentImSDKPlugin.v2TIMManager
.getFriendshipManager()
.deleteFriendApplication(
FriendApplicationTypeEnum.V2TIM_FRIEND_APPLICATION_BOTH,
'userID'
);
if (deleteFriendApplicationRes.code === 0) {
}