onSDKFailed method

void onSDKFailed(
  1. String apiName,
  2. int code,
  3. String desc
)

Implementation

void onSDKFailed(String apiName, int code, String desc) {
  TencentCloudChat.instance.logInstance.console(
    componentName: componentName,
    logs: json.encode({
      "apiName": apiName,
      "code": code,
      "desc": desc,
    }),
  );

  for (final callbacks in callbacksList) {
    callbacks.onSDKFailed?.call(apiName, code, desc);
  }
}