deleteFriendApplication
功能介绍
删除好友申请
参数详解
返回模板
V2TimValueCallback<V2TimFriendOperationResult>
{
code : number
desc : string
data : {
resultCode : number
resultInfo : string
userID : string
}
}
返回值详解
代码示例
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) {
}