Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qandroidquickviewembedding.cpp File Reference

(9fd9e881b2bfbdf726d55e7c1bd41734287aea2f)

#include <QtCore/private/qandroidtypeconverter_p.h>
#include <QtCore/private/qandroidtypes_p.h>
#include <QtQuick/private/qandroidquickviewembedding_p.h>
#include <QtQuick/private/qandroidviewsignalmanager_p.h>
#include <QtCore/private/qmetaobject_p.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qjnienvironment.h>
#include <QtCore/qjniobject.h>
#include <QtCore/qjniarray.h>
#include <QtCore/qjnitypes.h>
#include <QtQml/qqmlengine.h>
#include <QtQuick/qquickitem.h>
#include <functional>
#include <jni.h>
#include <memory>
Include dependency graph for qandroidquickviewembedding.cpp:

Go to the source code of this file.

Namespaces

namespace  QtAndroidQuickViewEmbedding

Functions

QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS (QtDelegate, "org/qtproject/qt/android/QtEmbeddedContextDelegate")
 Q_DECLARE_JNI_CLASS (QtQuickView, "org/qtproject/qt/android/QtQuickView")
 Q_DECLARE_JNI_CLASS (QtWindow, "org/qtproject/qt/android/QtWindow")
 Q_DECLARE_JNI_CLASS (View, "android/view/View")
static void QtAndroidQuickViewEmbedding::onQQuickViewStatusChanged (const QJniObject &qtViewObject, QAndroidQuickView::Status status)
void QtAndroidQuickViewEmbedding::createQuickView (JNIEnv *, jobject nativeWindow, jstring qmlUri, jint width, jint height, jlong parentWindowReference, jlong viewReference, const QJniArray< jstring > &qmlImportPaths)
std::pair< QAndroidQuickView *, QQuickItem * > QtAndroidQuickViewEmbedding::getViewAndRootObject (jlong windowReference)
void QtAndroidQuickViewEmbedding::setRootObjectProperty (JNIEnv *env, jobject object, jlong windowReference, jstring propertyName, jobject value)
jobject QtAndroidQuickViewEmbedding::getRootObjectProperty (JNIEnv *env, jobject object, jlong windowReference, jstring propertyName)
bool QtAndroidQuickViewEmbedding::addRootObjectSignalListener (JNIEnv *env, jobject, jlong windowReference, jstring signalName, QJniArray< jclass > argTypes, jobject listener, jint id)
bool QtAndroidQuickViewEmbedding::removeRootObjectSignalListener (JNIEnv *, jobject, jlong windowReference, jint signalListenerId)
QVariant QtAndroidQuickViewEmbedding::jobjectToVariant (QMetaType::Type type, jobject &obj)
QMetaMethod QtAndroidQuickViewEmbedding::findMethod (const QString &name, int paramCount, const QMetaObject &object)
void QtAndroidQuickViewEmbedding::invokeMethod (JNIEnv *, jobject, jlong viewReference, QtJniTypes::String methodName, QJniArray< jobject > jniParams)
bool QtAndroidQuickViewEmbedding::registerNatives (QJniEnvironment &env)
Q_DECL_EXPORT jint JNICALL JNI_OnLoad (JavaVM *vm, void *reserved)

Variables

constexpr const char * QtAndroidQuickViewEmbedding::uninitializedViewMessage = "because QtQuickView is not loaded or ready yet."

Function Documentation

◆ JNI_OnLoad()

Q_DECL_EXPORT jint JNICALL JNI_OnLoad ( JavaVM * vm,
void * reserved )

Definition at line 340 of file qandroidquickviewembedding.cpp.

◆ Q_DECLARE_JNI_CLASS() [1/4]

QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS ( QtDelegate ,
"org/qtproject/qt/android/QtEmbeddedContextDelegate"  )

◆ Q_DECLARE_JNI_CLASS() [2/4]

Q_DECLARE_JNI_CLASS ( QtQuickView ,
"org/qtproject/qt/android/QtQuickView"  )

◆ Q_DECLARE_JNI_CLASS() [3/4]

Q_DECLARE_JNI_CLASS ( QtWindow ,
"org/qtproject/qt/android/QtWindow"  )

◆ Q_DECLARE_JNI_CLASS() [4/4]

Q_DECLARE_JNI_CLASS ( View ,
"android/view/View"  )