Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QJniEnvironment Class Reference

\inmodule QtCore More...

+ Collaboration diagram for QJniEnvironment:

Detailed Description

\inmodule QtCore

Since
6.1

The QJniEnvironment class provides access to the JNI Environment (JNIEnv).

When using JNI, the \l {JNI tips: JavaVM and JNIEnv}{JNIEnv} class is a pointer to a function table and a member function for each JNI function that indirects through the table. JNIEnv provides most of the JNI functions. Every C++ native function receives a JNIEnv as the first argument. The JNI environment cannot be shared between threads.

Since JNIEnv doesn't do much error checking, such as exception checking and clearing, QJniEnvironment allows you to do that easily.

For more information about JNIEnv, see \l {Java: Interface Function Table}.

Note
This API has been designed and tested for use with Android. It has not been tested for other platforms.

The documentation for this class was generated from the following file: