MCPcopy Create free account
hub / github.com/AGenUI/AGenUI / dispatchComponentsRemove

Method dispatchComponentsRemove

core/src/module/agenui_event_dispatcher.cpp:77–85  ·  view source on GitHub ↗

Must be dispatched to the main thread on the native side

Source from the content-addressed store, hash-verified

75
76// Must be dispatched to the main thread on the native side
77void EventDispatcher::dispatchComponentsRemove(const std::string& surfaceId, const std::vector<ComponentsRemoveMessage>& messages) {
78 AGENUI_LOG("surfaceId:%s, count:%zu", surfaceId.c_str(), messages.size());
79 std::lock_guard<std::mutex> mutexWrap(_mutex);
80 for (auto* listener : _listeners) {
81 if (listener != nullptr) {
82 listener->onComponentsRemove(surfaceId, messages);
83 }
84 }
85}
86
87// Must be dispatched to the main thread on the native side
88void EventDispatcher::dispatchActionEventRouted(const std::string &content) {

Callers 1

Calls 3

c_strMethod · 0.80
onComponentsRemoveMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected