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

Method AddRetCallback

core/graphics/event/EventController.h:37–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 public:
36 void AddCallback(std::string type, EventCallbackType callback) { listeners_[type].push_back(callback); }
37 void AddRetCallback(std::string type, EventRetCallbackType callback) { retListeners_[type].push_back(callback); }
38
39 void RemoveCallback(std::string type) { listeners_.erase(type); }
40 void RemoveRetCallback(std::string type) { retListeners_.erase(type); }

Callers 1

TapMethod · 0.80

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected