This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric/native/native_bridge.cpp

12 lines
538 B
C++
Raw Normal View History

2019-12-13 17:45:27 +08:00
#include "context_manager.h"
#include "native_bridge.h"
Q_INVOKABLE void NativeBridge::function(int contextId, QString module, QString methodName, QString callbackId, QJSValue jsValue) {
qDebug() << "contextId: " + QString::number(contextId) + ", " +
"module: " + module + ", " +
"methodName: " + methodName + ", " +
"callbackId: " + callbackId + ", " +
"arguments: " + jsValue.toString();
2019-12-13 17:48:37 +08:00
Context *context = ContextManager::getInstance()->getContext(contextId);
2019-12-13 17:45:27 +08:00
}