TIMUninit
Introduction
Uninit IM SDK
Uninit DLL or terminate process after Uninit IM SDK, which is used for purge resources.
Normally, if your APP's lifecycle complies with IM SDK's, no need to Uninit before leave the APP.
But for special cases, like you only Init/Uninit on certain scene, you should Uninit before leave the scene.
Parameter details
This API has no parameters
Returned template
number
data:number
Return value details
name | type | description |
---|---|---|
data | number | Request result: Error codes. 0 means success. |
Code example
import TimRender from "im_electron_sdk/dist/renderer";
const timRenderInstance = new TimRender();
let { code } = await timRenderInstance.TIMUninit();
if (code == 0) {
// success
}