getVersion

Introduction

Get the version of the SDK.

Parameter details

This API has no parameters

Returned template

V2TimValueCallback<string>

{
    code : number
    desc : string
    data : string//The version of the SDK.
}

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 boolean The version of the SDK.

Code example

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


const getVersionRes = await TencentImSDKPlugin.v2TIMManager.getVersion();
if (getVersionRes.code === 0) {

    getVersionRes.data;
}

results matching ""

    No results matching ""