TIMSetUserSigExpiredCallback
Introduction
Set user signature expired callback
User sig may expire and once it happens, this is invoked
TIMLogin may return Error Code 70001 to inform you to update the user signature
Parameter details
Parameter name | Parameter type | Required | Description |
---|---|---|---|
params | TIMSetUserSigExpiredCallbackParam | yes | Param of setting user signature expired 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 { TIMSetUserSigExpiredCallbackParam } from "im_electron_sdk/dist/interfaces";
let param: TIMSetUserSigExpiredCallbackParam = {
userData: "", // required
callback: (data) => { } // required
};
timRenderInstance.TIMSetUserSigExpiredCallback(param)