Must be dispatched to the main thread on the native side
| 75 | |
| 76 | // Must be dispatched to the main thread on the native side |
| 77 | void 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 |
| 88 | void EventDispatcher::dispatchActionEventRouted(const std::string &content) { |
no test coverage detected