ErrorCallback

Introduction

The callback of the request failure.

Returned template

ErrorCallback = void Function(
int code,
String error
)

Return value details

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

Code example

int sdkAppID = 0;
V2TimSDKListener sdkListener = V2TimSDKListener(
      onConnectFailed: (code, error) {
        print(code);
        print(error);
      },
);
TencentImSDKPlugin.v2TIMManager.initSDK(
      sdkAppID: sdkAppID,
      loglevel: LogLevelEnum.V2TIM_LOG_ALL,
      listener: sdkListener,
);

results matching ""

    No results matching ""