std::string ProxyExecutor::invokeCallback(const double callbackId, const folly::dynamic& arguments) { std::vector<folly::dynamic> call{ (double) callbackId, std::move(arguments) }; return executeJSCallWithProxy(m_executor.get(), "invokeCallbackAndReturnFlushedQueue", std::move(call)); }
void ProxyExecutor::invokeCallback(const double callbackId, const folly::dynamic& arguments) { std::vector<folly::dynamic> call{ (double) callbackId, std::move(arguments) }; std::string result = executeJSCallWithProxy(m_executor.get(), "invokeCallbackAndReturnFlushedQueue", std::move(call)); m_delegate->callNativeModules(*this, folly::parseJson(result), true); }
std::string ProxyExecutor::callFunction(const double moduleId, const double methodId, const folly::dynamic& arguments) { std::vector<folly::dynamic> call{ (double) moduleId, (double) methodId, std::move(arguments), }; return executeJSCallWithProxy(m_executor.get(), "callFunctionReturnFlushedQueue", std::move(call)); }
void ProxyExecutor::callFunction(const std::string& moduleId, const std::string& methodId, const folly::dynamic& arguments) { std::vector<folly::dynamic> call{ moduleId, methodId, std::move(arguments), }; std::string result = executeJSCallWithProxy(m_executor.get(), "callFunctionReturnFlushedQueue", std::move(call)); m_delegate->callNativeModules(*this, folly::parseJson(result), true); }
void ProxyExecutor::callFunction(const double moduleId, const double methodId, const folly::dynamic& arguments) { std::vector<folly::dynamic> call{ (double) moduleId, (double) methodId, std::move(arguments), }; std::string result = executeJSCallWithProxy(m_executor.get(), "callFunctionReturnFlushedQueue", std::move(call)); m_bridge->callNativeModules(*this, result, true); }
std::string ProxyExecutor::flush() { return executeJSCallWithProxy(m_executor.get(), "flushedQueue", std::vector<folly::dynamic>()); }