TIMSetOnAddFriendCallback

Introduction

Set add friend listener

This is for multi-platform synchronization. Eg. A,B logged with the same account, and A adds a new friend, then B will receive this callback.

Parameter details

Parameter name Parameter type Required Description
params TIMOnAddFriendCallbackParams yes Param of setting add friend listener

Returned template

void

Return value details

This function has no return value

Code example

import TimRender from "im_electron_sdk/dist/renderer";
const timRenderInstance = new TimRender();
import { TIMOnAddFriendCallbackParams } from "im_electron_sdk/dist/interfaces";

let param:TIMOnAddFriendCallbackParams={
    callback: (data) => {}
}
timRenderInstance.TIMSetOnAddFriendCallback(param)

results matching ""

    No results matching ""