17 #ifndef SELFDETACHINGJNIENV_H
18 #define SELFDETACHINGJNIENV_H
22 #if defined(Q_OS_ANDROID)
97 operator bool()
const {
return mJNI; }
113 JavaVM* mVM =
nullptr;
114 JNIEnv* mJNI =
nullptr;
115 bool mAttached =
false;
118 #endif // Q_OS_ANDROID
119 #endif // SELFDETACHINGJNIENV_H
JNIEnv * getJNIEnv() const
Returns underlying JNIEnv pointer.
Smart wrapper around JNIEnv which retains information of how the environment was loaded.
Definition: SelfDetachingJNIEnv.h:33
static SelfDetachingJNIEnv fromJVM(JavaVM *vm)
Returns a SelfDetachingJNIEnv wrapper around the current JNIEnv.
JNIEnv * operator->()
Returns the underlying JNIEnv pointer to provide access to its members.
SelfDetachingJNIEnv & operator=(SelfDetachingJNIEnv &&value)
Move assigns value to this SelfDetachingJNIEnv instance.
JNIEnv & operator*()
Returns the dereferenced JNIEnv pointer.