TIMSetOnDeleteFriendCallback

Introduction

Set delete friend listener

此回调为了多终端同步。例如A设备、B设备都登录了同一账号的ImSDK,A设备添加了好友,B设备ImSDK会收到添加好友的推送,ImSDK通过此回调告知开发者。

Parameter details

Parameter name Parameter type Required Description
params TIMOnDeleteFriendCallbackParams yes Param of setting delete 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 { TIMOnDeleteFriendCallbackParams } from "im_electron_sdk/dist/interfaces";

let param:TIMOnDeleteFriendCallbackParams = {
    callback: (data) => {}
}
timRenderInstance.TIMSetOnDeleteFriendCallback(param)

results matching ""

    No results matching ""