Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AndroidJNIHelper

Namespace: UnityEngine

Suggest a change

Success!

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.

Close

Sumbission failed

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

Close

Cancel

Description

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

Static Variables

debug Set debug to true to log calls through the AndroidJNIHelper.

Static Functions

ConvertFromJNIArray Creates a managed array from a Java array.
ConvertToJNIArray Creates a Java array from a managed array.
CreateJavaProxy Creates a java proxy object which connects to the supplied proxy implementation.
CreateJavaRunnable Creates a UnityJavaRunnable object (implements java.lang.Runnable).
CreateJNIArgArray Creates the parameter array to be used as argument list when invoking Java code through CallMethod() in AndroidJNI.
DeleteJNIArgArray Deletes any local jni references previously allocated by CreateJNIArgArray().
GetConstructorID Scans a particular Java class for a constructor method matching a signature.
GetFieldID Scans a particular Java class for a field matching a name and a signature.
GetMethodID Scans a particular Java class for a method matching a name and a signature.
GetSignature Creates the JNI signature string for particular object type.