Convert JNI types to Native types

后端 未结 6 498
温柔的废话
温柔的废话 2020-12-30 18:47

While there is documentation regarding turning a jstring to a native string (string nativeString = env->GetStringUTFChars(jStringVariable, NULL);

6条回答
  •  情话喂你
    2020-12-30 19:02

    If you just want to use it in if(..) statement, this is working for me without conversion:

    if (jboolean == true) {
      return true;
    } else {
      return false;
    }
    

提交回复
热议问题