Show All |
Public Member Functions
-
~JniHelper ()
-
jobjectGetActivityObject ()
-
jclassRetrieveClass (const std::string &name, bool clearExc=true)
-
JNIEnv *AttachCurrentThread ()
-
voidDeatchCurrentThread ()
-
jclassFindClass (const std::string &name)
-
jmethodIDGetStaticMethodId (jclass clazz, const std::string &name, const std::string &sig)
-
voidCallStaticVoidMethod (jclass clazz, jmethodID methodId,...)
-
jmethodIDGetMethodId (jclass clazz, const std::string &name, const std::string &sig)
-
voidCallVoidMethod (jobject obj, jmethodID methodId,...)
-
jfieldIDGetStaticFieldId (jclass clazz, const std::string &name, const std::string &sig)
-
jfieldIDGetStaticObjectFieldId (jclass clazz, const std::string &name, const std::string &sig)
-
std::stringGetStaticStringField (jclass clazz, jfieldID fieldId)
-
voidSetStaticStringField (jclass clazz, jfieldID fieldId, const std::string &value)
-
jfieldIDGetFieldId (jclass clazz, const std::string &name, const std::string &sig)
-
jfieldIDGetObjectFieldId (jclass clazz, const std::string &name, const std::string &sig)
-
std::stringGetStringField (jobject obj, jfieldID fieldId)
-
voidSetStringField (jobject obj, jfieldID fieldId, const std::string &value)
-
jobjectNewGlobalRef (jobject obj)
-
voidDeleteGlobalRef (jobject globalRef)
-
TrackedNewGlobalRef (jobject obj)
-
voidTrackedDeleteGlobalRef (const JniGlobalObjectRef &globalRef)
-
jstringNewStringUTF (const std::string &str)
-
voidDeleteLocalRef (jobject localRef)
-
jsizeGetArrayLength (jarray array)
-
jobjectGetObjectArrayElements (jobjectArray array, jsize index)
-
jbyte *GetByteArrayElements (jbyteArray array, jboolean *isCopy)
-
jint *GetIntArrayElements (jintArray array, jboolean *isCopy)
-
voidReleaseByteArrayElements (jbyteArray array, jbyte *elems, jint mode)
-
voidReleaseIntArrayElements (jintArray array, jint *elems, jint mode)
-
jthrowableExceptionOccurred ()
-
voidExceptionDescribe ()
-
voidExceptionClear ()
-
jbooleanExceptionCheck ()
Static Public Member Functions
-
voidInitialize (ANativeActivity *nativeActivity)
-
voidDestroy ()
-
Get ()
-
std::stringStdStringFromJString (JNIEnv *jniEnv, jstring jstr)
-
voidThrowAsCppException (JNIEnv *jniEnv, const std::string &msg, bool clearExc=true)
-
voidThrowAsCppExceptionFull (JNIEnv *jniEnv, const std::string &file, const int line, const std::string &fn, const std::string &msg, bool clearExc=true)