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

Class BridgeChannel

core/bridge/ChartBridge.h:26–42  ·  view source on GitHub ↗

bridge的回调方法

Source from the content-addressed store, hash-verified

24
25///bridge的回调方法
26class BridgeChannel final: public func::F2Function {
27 public:
28 BridgeChannel(): func::F2Function() {}
29
30 static BridgeChannel Callback(ChannelCallback callback) {
31 BridgeChannel function;
32 function.callback_ = callback;
33 return function;
34 }
35
36 const std::string Execute(const std::string &functionId, const std::string &param) override {
37 return callback_(functionId, param);
38 }
39
40 public:
41 ChannelCallback callback_;
42};
43
44
45

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected