Version: 2019.1 (switch to 2018.3 or 2017.4)
  • C#


class in UnityEngine


Implemented in:UnityEngine.CoreModule

Suggest a change


Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.


Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.




Helper interface for JNI interaction; signature creation and method lookups.

Note: Using raw JNI functions requires advanced knowledge of the Android Java Native Interface (JNI). Please take note.

Static Properties

debugSet debug to true to log calls through the AndroidJNIHelper.

Static Methods

ConvertFromJNIArrayCreates a managed array from a Java array.
ConvertToJNIArrayCreates a Java array from a managed array.
CreateJavaProxyCreates a java proxy object which connects to the supplied proxy implementation.
CreateJavaRunnableCreates a UnityJavaRunnable object (implements java.lang.Runnable).
CreateJNIArgArrayCreates the parameter array to be used as argument list when invoking Java code through CallMethod() in AndroidJNI.
DeleteJNIArgArrayDeletes any local jni references previously allocated by CreateJNIArgArray().
GetConstructorIDScans a particular Java class for a constructor method matching a signature.
GetFieldIDScans a particular Java class for a field matching a name and a signature.
GetMethodIDScans a particular Java class for a method matching a name and a signature.
GetSignatureCreates the JNI signature string for particular object type.

Did you find this page useful? Please give it a rating: