TIMSetUserStatusChangedCallback

Introduction

set user status changed callback

{"Circumstances when notifications are received":null}

  1. The callback will be triggered when the subscribed user changes status (including online status and custom status)

  2. The friend status notification switch is turned on in the IM console, even if the friend status is not actively subscribed, the callback will be triggered when the friend status changes

  3. Multiple devices log in with the same account, when one of the devices modifies the custom status, all devices will receive the callback

Parameter details

Parameter name Parameter type Required Description
params TIMSetUserStatusChangedCallbackParam yes set user status changed 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 {TIMSetUserStatusChangedCallbackParam} from "im_electron_sdk/dist/interfaces"
let obj:TIMSetUserStatusChangedCallbackParam={
    callback:function(data){}
}
timRenderInstance.TIMSetUserStatusChangedCallback(obj)

results matching ""

    No results matching ""