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

Method dispatchComponentsUpdate

core/src/module/agenui_event_dispatcher.cpp:57–64  ·  view source on GitHub ↗

Must be dispatched to the main thread on the native side

Source from the content-addressed store, hash-verified

55
56// Must be dispatched to the main thread on the native side
57void EventDispatcher::dispatchComponentsUpdate(const std::string& surfaceId, const std::vector<ComponentsUpdateMessage>& messages) {
58 std::lock_guard<std::mutex> mutexWrap(_mutex);
59 for (auto* listener : _listeners) {
60 if (listener != nullptr) {
61 listener->onComponentsUpdate(surfaceId, messages);
62 }
63 }
64}
65
66// Must be dispatched to the main thread on the native side
67void EventDispatcher::dispatchComponentsAdd(const std::string& surfaceId, const std::vector<ComponentsAddMessage>& messages) {

Callers 1

Calls 1

onComponentsUpdateMethod · 0.65

Tested by

no test coverage detected