What is “jobject thiz” in JNI and what is it used for?

后端 未结 3 1871
傲寒
傲寒 2020-12-31 06:25

I am having a hard time finding an answer to this. But, what is \"jboject thiz\" used for in JNI function calls? For example:

jobjectArray Java_com_gnychis         


        
3条回答
  •  执念已碎
    2020-12-31 06:46

    jobject thiz means the this in java class.

    Sometimes if you create a static native method like this.

    void Java_MyClass_method1 (JNIEnv *, jclass);
    

    jclass means the class itself.

提交回复
热议问题