MCPcopy Create free account
hub / github.com/antvis/F2Native / CallbackError

Method CallbackError

core/bridge/ChartBridge.cpp:301–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301void ChartBridge::CallbackError(const std::string &methodName, BridgeCallback callback, const std::string &msg) {
302 nlohmann::json ret = {{"method", methodName}, {"error", msg} , {"renderResult", {{"state", false}}}};
303 callback(ret.dump());
304}
305
306void ChartBridge::SetEnableListConfig(const std::string &params){
307 if (chart_ == nullptr || params.empty()) {

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected