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.h

19 lines
360 B
C
Raw Normal View History

2019-12-04 15:51:46 +08:00
#ifndef NATIVE_BRIDGE_H
#define NATIVE_BRIDGE_H
#include <QObject>
#include <QDebug>
class NativeBridge : public QObject {
Q_OBJECT
public:
NativeBridge(QObject *parent = nullptr) : QObject(parent) {}
2019-12-04 16:44:30 +08:00
Q_INVOKABLE void function(int contextId) {
2019-12-12 16:10:01 +08:00
qDebug() << "contextId: " + QString::number(contextId);
2019-12-04 15:51:46 +08:00
}
};
#endif // NATIVE_BRIDGE_H