TIMSetUserStatusChangedCallback
Introduction
set user status changed callback
{"Circumstances when notifications are received":null}
The callback will be triggered when the subscribed user changes status (including online status and custom status)
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
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)