#ifndef NATIVE_BRIDGE_H #define NATIVE_BRIDGE_H #include #include #include class NativeBridge : public QObject { Q_OBJECT public: NativeBridge(QObject *parent = nullptr) : QObject(parent) {} Q_INVOKABLE void 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(); } }; #endif // NATIVE_BRIDGE_H