MCPcopy Create free account
hub / github.com/Snapchat/Valdi / receivedCallActionMessage

Method receivedCallActionMessage

valdi/src/valdi/runtime/Runtime.cpp:696–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694 }
695
696 viewNodeTree->getContext()->onRendered();
697 },
698 [=]() {
699 if (_listener != nullptr) {
700 _listener->onContextRendered(*this, viewNodeTree->getContext());
701 }
702 });
703#endif
704}
705
706void Runtime::receivedCallActionMessage(const ContextId& contextId,
707 const StringBox& actionName,
708 const Ref<ValueArray>& parameters) {
709 auto context = _contextManager.getContext(contextId);
710 if (context == nullptr) {
711 VALDI_WARN(*_logger, "Cannot call action: Context {} was already destroyed.", contextId);
712 return;
713 }
714 auto viewNodeTree = _viewNodeManager.getViewNodeTreeForContextId(context->getContextId());

Callers 1

runtimePostMessageMethod · 0.80

Calls 6

getViewManagerMethod · 0.80
callActionMethod · 0.65
getMethod · 0.65
getContextMethod · 0.45
getContextIdMethod · 0.45

Tested by

no test coverage detected