Uninitialized the SDK.

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

However, you can reinitialize 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


    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 error. It will be empty if success.

Code example

    int sdkAppID = 0;
    V2TimSDKListener sdkListener = V2TimSDKListener(
      onConnectFailed: (code, error) {}, 
      onConnectSuccess: () {}, 
      onConnecting: () {}, 
      onKickedOffline: () {}, 
      onSelfInfoUpdated: (V2TimUserFullInfo info) {}, 
      onUserSigExpired: () {}, 
    V2TimValueCallback<bool> initSDKRes =
        await TencentImSDKPlugin.v2TIMManager.initSDK(
      sdkAppID: sdkAppID, 
      loglevel: LogLevelEnum.V2TIM_LOG_ALL, 
      listener: sdkListener, 
    if (initSDKRes.code == 0) {}
    V2TimCallback unInitSDKRes =
        await TencentImSDKPlugin.v2TIMManager.unInitSDK();
    if (unInitSDKRes.code == 0) {

results matching ""

    No results matching ""