TIMSetGroupTipsEventCallback

Introduction

Set group tips event callback

Group tips event includes: join group, quit group, remove from the group, grant admin, devolve admin, modify group info, modify group member info. This callback is for all the group members

Some events can trigger GroupTipsEventCallback automatically by the IM server, like, when someone enters or exits a group.

Parameter details

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

let param: GroupTipsCallbackParams = {
    callback: (data) => { },    // required
    data: ''    // optional
}
timRenderInstance.TIMSetGroupTipsEventCallback(param)

results matching ""

    No results matching ""