TIMSetConvEventCallback

Introduction

Set conversation event callback

Includes:

New conversation

Delete conversation

Delete conversation

Start conversation

End conversation

Every new conversation event will trigger new conversation event, eg. receive the first message from unknown conversation and etc.

Every event on the exist conversation will cause update conversatin event, eg. receiving new message from conversation, message revoked, message read reported

Use TIMConvCreate to delete conversation will trigger delete conversation event

Parameter details

Parameter name Parameter type Required Description
params setConvEventCallback yes Param of setting conversation event callback

Returned template

Promise<any>

Return value details

name type description
data any return value

Code example

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

let param: setConvEventCallback = {
    user_data: "",   // optional
    callback: (...data) => { }  // required
}
timRenderInstance.TIMSetConvEventCallback(param)

results matching ""

    No results matching ""