unInit

Introduction

Uninitialize the TUIKit.

Generally, if your application's lifecycle is the same as the IM SDK's lifecycle, you don't need to uninitialize the IM SDK before exiting the application.

However, you can uninitialize the IM SDK in special cases, for example, only after you enter a specific UI and no longer use it after exiting the UI.

Parameter details

This API has no parameters

Returned template

V2TimCallback

{
    code : int
    desc : String
}

Return value details

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the failure.

Code example

    final CoreServicesImpl _coreInstance = TIMUIKitCore.getInstance();
    V2TimCallback unInitSDKRes = await _coreInstance.unInit();
    if (unInitSDKRes.code == 0) {
    }

results matching ""

    No results matching ""