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

import { TencentImSDKPlugin, FriendType } from 'react-native-tim-js';


const userID = '';
const remark = '';
const friendGroup = '';
const addWording = '';
const addSource = '';
const addType = FriendType.V2TIM_FRIEND_TYPE_BOTH;


const addFriendRes = await TencentImSDKPlugin.v2TIMManager
    .getFriendshipManager()
    .addFriend(userID, addType, remark, friendGroup, addWording, addSource);
if (addFriendRes.code === 0) {

}

results matching ""

    No results matching ""