Must be dispatched to the main thread on the native side
| 55 | |
| 56 | // Must be dispatched to the main thread on the native side |
| 57 | void 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 |
| 67 | void EventDispatcher::dispatchComponentsAdd(const std::string& surfaceId, const std::vector<ComponentsAddMessage>& messages) { |
no test coverage detected