TIMSetFriendAddRequestCallback

Introduction

Set friend request callback

If current user's friend request needs confirmation, and other applies a friend request to the user, the user will receive thiss callback. If you logged on multi-platforms, each of them will trigger this callback

Parameter details

Parameter name Parameter type Required Description
params TIMFriendAddRequestCallbackParams yes Param of setting friend request callback

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 { TIMFriendAddRequestCallbackParams } from "im_electron_sdk/dist/interfaces";

let param:TIMFriendAddRequestCallbackParams={
    callback: (data) => {}
}
timRenderInstance.TIMSetFriendAddRequestCallback(param)

results matching ""

    No results matching ""