I did 2 different implementations from tutorials I followed and I noticed the parameters are a little different for each one, 1 parameter is jclass
and the other is jobject
I don't use these parameters at all, but I tried experimenting and switching them from jclass
to jobject
and jobject
to jclass
and I noticed everything still works as expected so I'm not sure what exactly jobject
and jinstance
do exactly, also if my method is not using either of these parameters why are they required ? and can someone please provide the correct declaration of these methods in my java class i'm unsure if I did it right
JNIEXPORT void JNICALL Java_org_cocos2dx_cpp_AppActivity_pauseSounds(JNIEnv* env, jclass thiz);
JNIEXPORT jstring JNICALL Java_org_cocos2dx_cpp_AppActivity_score(JNIEnv *env, jobject instance);