# AndroidJNI

> 'Raw' JNI interface to Android Java VM from Unity scripting (C#). Note: Using raw JNI functions requires advanced knowledge of the Android Java Native Interface (JNI). Please take note.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

```csharp
public static class AndroidJNI
```

## Static Methods

| Method                                                                                                                   | Description                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [AllocObject](/engine/6000.0/script-reference/unityengine/androidjni/allocobject.md)                                     | Allocates a new Java object without invoking any of the constructors for the object.                                                                                                                                                                                                             |
| [AttachCurrentThread](/engine/6000.0/script-reference/unityengine/androidjni/attachcurrentthread.md)                     | Attaches the current thread to a Java (Dalvik) VM.                                                                                                                                                                                                                                               |
| [CallBooleanMethod](/engine/6000.0/script-reference/unityengine/androidjni/callbooleanmethod.md)                         | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallBooleanMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callbooleanmethodunsafe.md)             | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallCharMethod](/engine/6000.0/script-reference/unityengine/androidjni/callcharmethod.md)                               | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallCharMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callcharmethodunsafe.md)                   | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallDoubleMethod](/engine/6000.0/script-reference/unityengine/androidjni/calldoublemethod.md)                           | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallDoubleMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/calldoublemethodunsafe.md)               | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallFloatMethod](/engine/6000.0/script-reference/unityengine/androidjni/callfloatmethod.md)                             | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallFloatMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callfloatmethodunsafe.md)                 | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallIntMethod](/engine/6000.0/script-reference/unityengine/androidjni/callintmethod.md)                                 | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallIntMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callintmethodunsafe.md)                     | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallLongMethod](/engine/6000.0/script-reference/unityengine/androidjni/calllongmethod.md)                               | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallLongMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/calllongmethodunsafe.md)                   | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallObjectMethod](/engine/6000.0/script-reference/unityengine/androidjni/callobjectmethod.md)                           | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallObjectMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callobjectmethodunsafe.md)               | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallSByteMethod](/engine/6000.0/script-reference/unityengine/androidjni/callsbytemethod.md)                             | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallSByteMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callsbytemethodunsafe.md)                 | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallShortMethod](/engine/6000.0/script-reference/unityengine/androidjni/callshortmethod.md)                             | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallShortMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callshortmethodunsafe.md)                 | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallStaticBooleanMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticbooleanmethod.md)             | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticBooleanMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticbooleanmethodunsafe.md) | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticCharMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticcharmethod.md)                   | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticCharMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticcharmethodunsafe.md)       | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticDoubleMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticdoublemethod.md)               | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticDoubleMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticdoublemethodunsafe.md)   | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticFloatMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticfloatmethod.md)                 | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticFloatMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticfloatmethodunsafe.md)     | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticIntMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticintmethod.md)                     | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticIntMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticintmethodunsafe.md)         | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticLongMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticlongmethod.md)                   | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticLongMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticlongmethodunsafe.md)       | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticObjectMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticobjectmethod.md)               | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticObjectMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticobjectmethodunsafe.md)   | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticSByteMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticsbytemethod.md)                 | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticSByteMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticsbytemethodunsafe.md)     | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticShortMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticshortmethod.md)                 | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticShortMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticshortmethodunsafe.md)     | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticStringMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticstringmethod.md)               | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticStringMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticstringmethodunsafe.md)   | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticVoidMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstaticvoidmethod.md)                   | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStaticVoidMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstaticvoidmethodunsafe.md)       | Invokes the specified \\\<tt\\>methodID\\\</tt\\> static method on a Java object, optionally passing in an array of arguments (\\\<tt\\>args\\\</tt\\>).                                                                                                                                         |
| [CallStringMethod](/engine/6000.0/script-reference/unityengine/androidjni/callstringmethod.md)                           | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallStringMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callstringmethodunsafe.md)               | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallVoidMethod](/engine/6000.0/script-reference/unityengine/androidjni/callvoidmethod.md)                               | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [CallVoidMethodUnsafe](/engine/6000.0/script-reference/unityengine/androidjni/callvoidmethodunsafe.md)                   | Calls a Java instance method defined by \\\<tt\\>methodID\\\</tt\\>, optionally passing an array of arguments (\\\<tt\\>args\\\</tt\\>) to the method.                                                                                                                                           |
| [DeleteGlobalRef](/engine/6000.0/script-reference/unityengine/androidjni/deleteglobalref.md)                             | Deletes the global reference pointed to by \\\<tt\\>obj\\\</tt\\>.                                                                                                                                                                                                                               |
| [DeleteLocalRef](/engine/6000.0/script-reference/unityengine/androidjni/deletelocalref.md)                               | Deletes the local reference pointed to by \\\<tt\\>obj\\\</tt\\>.                                                                                                                                                                                                                                |
| [DeleteWeakGlobalRef](/engine/6000.0/script-reference/unityengine/androidjni/deleteweakglobalref.md)                     | Deletes the global weak reference pointed to by \\\<tt\\>obj\\\</tt\\>.                                                                                                                                                                                                                          |
| [DetachCurrentThread](/engine/6000.0/script-reference/unityengine/androidjni/detachcurrentthread.md)                     | Detaches the current thread from a Java (Dalvik) VM.                                                                                                                                                                                                                                             |
| [EnsureLocalCapacity](/engine/6000.0/script-reference/unityengine/androidjni/ensurelocalcapacity.md)                     | Ensures that at least a given number of local references can be created in the current thread.                                                                                                                                                                                                   |
| [ExceptionClear](/engine/6000.0/script-reference/unityengine/androidjni/exceptionclear.md)                               | Clears any exception that is currently being thrown.                                                                                                                                                                                                                                             |
| [ExceptionDescribe](/engine/6000.0/script-reference/unityengine/androidjni/exceptiondescribe.md)                         | Prints an exception and a backtrace of the stack to the \\\<tt\\>logcat\\\</tt\\>                                                                                                                                                                                                                |
| [ExceptionOccurred](/engine/6000.0/script-reference/unityengine/androidjni/exceptionoccurred.md)                         | Determines if an exception is being thrown.                                                                                                                                                                                                                                                      |
| [FatalError](/engine/6000.0/script-reference/unityengine/androidjni/fatalerror.md)                                       | Raises a fatal error and does not expect the VM to recover. This function does not return.                                                                                                                                                                                                       |
| [FindClass](/engine/6000.0/script-reference/unityengine/androidjni/findclass.md)                                         | This function loads a locally-defined class.                                                                                                                                                                                                                                                     |
| [FromBooleanArray](/engine/6000.0/script-reference/unityengine/androidjni/frombooleanarray.md)                           | Converts a Java array of \\\<tt\\>boolean\\\</tt\\> to a managed array of System.Boolean.                                                                                                                                                                                                        |
| [FromCharArray](/engine/6000.0/script-reference/unityengine/androidjni/fromchararray.md)                                 | Converts a Java array of \\\<tt\\>char\\\</tt\\> to a managed array of System.Char.                                                                                                                                                                                                              |
| [FromDoubleArray](/engine/6000.0/script-reference/unityengine/androidjni/fromdoublearray.md)                             | Converts a Java array of \\\<tt\\>double\\\</tt\\> to a managed array of System.Double.                                                                                                                                                                                                          |
| [FromFloatArray](/engine/6000.0/script-reference/unityengine/androidjni/fromfloatarray.md)                               | Converts a Java array of \\\<tt\\>float\\\</tt\\> to a managed array of System.Single.                                                                                                                                                                                                           |
| [FromIntArray](/engine/6000.0/script-reference/unityengine/androidjni/fromintarray.md)                                   | Converts a Java array of \\\<tt\\>int\\\</tt\\> to a managed array of System.Int32.                                                                                                                                                                                                              |
| [FromLongArray](/engine/6000.0/script-reference/unityengine/androidjni/fromlongarray.md)                                 | Converts a Java array of \\\<tt\\>long\\\</tt\\> to a managed array of System.Int64.                                                                                                                                                                                                             |
| [FromObjectArray](/engine/6000.0/script-reference/unityengine/androidjni/fromobjectarray.md)                             | Converts a Java array of \\\<tt\\>java.lang.Object\\\</tt\\> to a managed array of System.IntPtr, representing Java objects.                                                                                                                                                                     |
| [FromReflectedField](/engine/6000.0/script-reference/unityengine/androidjni/fromreflectedfield.md)                       | Converts a \\\<tt\\>java.lang.reflect.Field\\\</tt\\> to a field ID.                                                                                                                                                                                                                             |
| [FromReflectedMethod](/engine/6000.0/script-reference/unityengine/androidjni/fromreflectedmethod.md)                     | Converts a \\\<tt\\>java.lang.reflect.Method\\\</tt\\> or \\\<tt\\>java.lang.reflect.Constructor\\\</tt\\> object to a method ID.                                                                                                                                                                |
| [FromSByteArray](/engine/6000.0/script-reference/unityengine/androidjni/fromsbytearray.md)                               | Converts a Java array of \\\<tt\\>byte\\\</tt\\> to a managed array of System.SByte.                                                                                                                                                                                                             |
| [FromShortArray](/engine/6000.0/script-reference/unityengine/androidjni/fromshortarray.md)                               | Converts a Java array of \\\<tt\\>short\\\</tt\\> to a managed array of System.Int16.                                                                                                                                                                                                            |
| [GetArrayLength](/engine/6000.0/script-reference/unityengine/androidjni/getarraylength.md)                               | Returns the number of elements in the array.                                                                                                                                                                                                                                                     |
| [GetBooleanArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/getbooleanarrayelement.md)               | Returns the value of one element of a primitive array.                                                                                                                                                                                                                                           |
| [GetBooleanField](/engine/6000.0/script-reference/unityengine/androidjni/getbooleanfield.md)                             | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetCharArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/getchararrayelement.md)                     | Returns the value of one element of a primitive array.                                                                                                                                                                                                                                           |
| [GetCharField](/engine/6000.0/script-reference/unityengine/androidjni/getcharfield.md)                                   | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetDirectBufferAddress](/engine/6000.0/script-reference/unityengine/androidjni/getdirectbufferaddress.md)               | Fetches and returns the starting address of the memory region referenced by the given direct java.nio.Buffer.                                                                                                                                                                                    |
| [GetDirectBufferCapacity](/engine/6000.0/script-reference/unityengine/androidjni/getdirectbuffercapacity.md)             | Fetches and returns the capacity of the memory region referenced by the given direct java.nio.Buffer.                                                                                                                                                                                            |
| [GetDirectByteBuffer](/engine/6000.0/script-reference/unityengine/androidjni/getdirectbytebuffer.md)                     | Returns the NativeArray backed by the same memory region as the given direct java.nio.Buffer.                                                                                                                                                                                                    |
| [GetDirectSByteBuffer](/engine/6000.0/script-reference/unityengine/androidjni/getdirectsbytebuffer.md)                   | Returns the NativeArray backed by the same memory region as the given direct java.nio.Buffer.                                                                                                                                                                                                    |
| [GetDoubleArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/getdoublearrayelement.md)                 | Returns the value of one element of a primitive array.                                                                                                                                                                                                                                           |
| [GetDoubleField](/engine/6000.0/script-reference/unityengine/androidjni/getdoublefield.md)                               | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetFieldID](/engine/6000.0/script-reference/unityengine/androidjni/getfieldid.md)                                       | Returns the field ID for an instance (nonstatic) field of a class.                                                                                                                                                                                                                               |
| [GetFloatArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/getfloatarrayelement.md)                   | Returns the value of one element of a primitive array.                                                                                                                                                                                                                                           |
| [GetFloatField](/engine/6000.0/script-reference/unityengine/androidjni/getfloatfield.md)                                 | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetIntArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/getintarrayelement.md)                       | Returns the value of one element of a primitive array.                                                                                                                                                                                                                                           |
| [GetIntField](/engine/6000.0/script-reference/unityengine/androidjni/getintfield.md)                                     | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetJavaVM](/engine/6000.0/script-reference/unityengine/androidjni/getjavavm.md)                                         | Returns the pointer to JavaVM.                                                                                                                                                                                                                                                                   |
| [GetLongArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/getlongarrayelement.md)                     | Returns the value of one element of a primitive array.                                                                                                                                                                                                                                           |
| [GetLongField](/engine/6000.0/script-reference/unityengine/androidjni/getlongfield.md)                                   | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetMethodID](/engine/6000.0/script-reference/unityengine/androidjni/getmethodid.md)                                     | Returns the method ID for an instance (nonstatic) method of a class or interface.                                                                                                                                                                                                                |
| [GetObjectArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/getobjectarrayelement.md)                 | Returns an element of an \\\<tt\\>Object\\\</tt\\> array.                                                                                                                                                                                                                                        |
| [GetObjectClass](/engine/6000.0/script-reference/unityengine/androidjni/getobjectclass.md)                               | Returns the class of an object.                                                                                                                                                                                                                                                                  |
| [GetObjectField](/engine/6000.0/script-reference/unityengine/androidjni/getobjectfield.md)                               | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetSByteArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/getsbytearrayelement.md)                   | Returns the value of one element of a primitive array.                                                                                                                                                                                                                                           |
| [GetSByteField](/engine/6000.0/script-reference/unityengine/androidjni/getsbytefield.md)                                 | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetShortArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/getshortarrayelement.md)                   | Returns the value of one element of a primitive array.                                                                                                                                                                                                                                           |
| [GetShortField](/engine/6000.0/script-reference/unityengine/androidjni/getshortfield.md)                                 | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetStaticBooleanField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticbooleanfield.md)                 | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStaticCharField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticcharfield.md)                       | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStaticDoubleField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticdoublefield.md)                   | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStaticFieldID](/engine/6000.0/script-reference/unityengine/androidjni/getstaticfieldid.md)                           | Returns the field ID for a static field of a class.                                                                                                                                                                                                                                              |
| [GetStaticFloatField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticfloatfield.md)                     | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStaticIntField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticintfield.md)                         | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStaticLongField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticlongfield.md)                       | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStaticMethodID](/engine/6000.0/script-reference/unityengine/androidjni/getstaticmethodid.md)                         | Returns the method ID for a static method of a class.                                                                                                                                                                                                                                            |
| [GetStaticObjectField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticobjectfield.md)                   | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStaticSByteField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticsbytefield.md)                     | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStaticShortField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticshortfield.md)                     | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStaticStringField](/engine/6000.0/script-reference/unityengine/androidjni/getstaticstringfield.md)                   | Returns the value of a static field of an object.                                                                                                                                                                                                                                                |
| [GetStringChars](/engine/6000.0/script-reference/unityengine/androidjni/getstringchars.md)                               | Returns a pointer to the array of Unicode characters of the string. This pointer is valid until ReleaseStringchars() is called.                                                                                                                                                                  |
| [GetStringField](/engine/6000.0/script-reference/unityengine/androidjni/getstringfield.md)                               | Returns the value of an instance (nonstatic) field of an object.                                                                                                                                                                                                                                 |
| [GetStringLength](/engine/6000.0/script-reference/unityengine/androidjni/getstringlength.md)                             | Returns the length (the count of Unicode characters) of a Java string.                                                                                                                                                                                                                           |
| [GetStringUTFChars](/engine/6000.0/script-reference/unityengine/androidjni/getstringutfchars.md)                         | Returns a managed string object representing the string in modified UTF-8 encoding.                                                                                                                                                                                                              |
| [GetStringUTFLength](/engine/6000.0/script-reference/unityengine/androidjni/getstringutflength.md)                       | Returns the length in bytes of the modified UTF-8 representation of a string.                                                                                                                                                                                                                    |
| [GetSuperclass](/engine/6000.0/script-reference/unityengine/androidjni/getsuperclass.md)                                 | If \\\<tt\\>clazz\\\</tt\\> represents any class other than the class \\\<tt\\>Object\\\</tt\\>, then this function returns the object that represents the superclass of the class specified by \\\<tt\\>clazz\\\</tt\\>.                                                                        |
| [GetVersion](/engine/6000.0/script-reference/unityengine/androidjni/getversion.md)                                       | Returns the version of the native method interface.                                                                                                                                                                                                                                              |
| [InvokeAttached](/engine/6000.0/script-reference/unityengine/androidjni/invokeattached.md)                               | Calls [AndroidJNI.AttachCurrentThread](/engine/6000.0/script-reference/unityengine/androidjni/attachcurrentthread.md) (if necessary) before invoking a delegate, and then calls [AndroidJNI.DetachCurrentThread](/engine/6000.0/script-reference/unityengine/androidjni/detachcurrentthread.md). |
| [IsAssignableFrom](/engine/6000.0/script-reference/unityengine/androidjni/isassignablefrom.md)                           | Determines whether an object of \\\<tt\\>clazz1\\\</tt\\> can be safely cast to \\\<tt\\>clazz2\\\</tt\\>.                                                                                                                                                                                       |
| [IsInstanceOf](/engine/6000.0/script-reference/unityengine/androidjni/isinstanceof.md)                                   | Tests whether an object is an instance of a class.                                                                                                                                                                                                                                               |
| [IsSameObject](/engine/6000.0/script-reference/unityengine/androidjni/issameobject.md)                                   | Tests whether two references refer to the same Java object.                                                                                                                                                                                                                                      |
| [NewBooleanArray](/engine/6000.0/script-reference/unityengine/androidjni/newbooleanarray.md)                             | Constructs a new primitive array object.                                                                                                                                                                                                                                                         |
| [NewCharArray](/engine/6000.0/script-reference/unityengine/androidjni/newchararray.md)                                   | Constructs a new primitive array object.                                                                                                                                                                                                                                                         |
| [NewDirectByteBuffer](/engine/6000.0/script-reference/unityengine/androidjni/newdirectbytebuffer.md)                     | Allocates and returns a direct java.nio.ByteBuffer referring to the block of memory starting at the memory address address and extending capacity bytes.                                                                                                                                         |
| [NewDoubleArray](/engine/6000.0/script-reference/unityengine/androidjni/newdoublearray.md)                               | Constructs a new primitive array object.                                                                                                                                                                                                                                                         |
| [NewFloatArray](/engine/6000.0/script-reference/unityengine/androidjni/newfloatarray.md)                                 | Constructs a new primitive array object.                                                                                                                                                                                                                                                         |
| [NewGlobalRef](/engine/6000.0/script-reference/unityengine/androidjni/newglobalref.md)                                   | Creates a new global reference to the object referred to by the \\\<tt\\>obj\\\</tt\\> argument.                                                                                                                                                                                                 |
| [NewIntArray](/engine/6000.0/script-reference/unityengine/androidjni/newintarray.md)                                     | Constructs a new primitive array object.                                                                                                                                                                                                                                                         |
| [NewLocalRef](/engine/6000.0/script-reference/unityengine/androidjni/newlocalref.md)                                     | Creates a new local reference that refers to the same object as \\\<tt\\>obj\\\</tt\\>.                                                                                                                                                                                                          |
| [NewLongArray](/engine/6000.0/script-reference/unityengine/androidjni/newlongarray.md)                                   | Constructs a new primitive array object.                                                                                                                                                                                                                                                         |
| [NewObject](/engine/6000.0/script-reference/unityengine/androidjni/newobject.md)                                         | Constructs a new Java object. The method ID indicates which constructor method to invoke. This ID must be obtained by calling GetMethodID() with \\\<init\\> as the method name and void (V) as the return type.                                                                                 |
| [NewObjectA](/engine/6000.0/script-reference/unityengine/androidjni/newobjecta.md)                                       | Constructs a new Java object. The method ID indicates which constructor method to invoke. This ID must be obtained by calling GetMethodID() with \\\<init\\> as the method name and void (V) as the return type.                                                                                 |
| [NewObjectArray](/engine/6000.0/script-reference/unityengine/androidjni/newobjectarray.md)                               | Constructs a new array holding objects in class \\\<tt\\>clazz\\\</tt\\>. All elements are initially set to \\\<tt\\>obj\\\</tt\\>.                                                                                                                                                              |
| [NewSByteArray](/engine/6000.0/script-reference/unityengine/androidjni/newsbytearray.md)                                 | Constructs a new primitive array object.                                                                                                                                                                                                                                                         |
| [NewShortArray](/engine/6000.0/script-reference/unityengine/androidjni/newshortarray.md)                                 | Constructs a new primitive array object.                                                                                                                                                                                                                                                         |
| [NewString](/engine/6000.0/script-reference/unityengine/androidjni/newstring.md)                                         | Constructs a new \\\<tt\\>java.lang.String\\\</tt\\> object from an array of Unicode characters.                                                                                                                                                                                                 |
| [NewStringUTF](/engine/6000.0/script-reference/unityengine/androidjni/newstringutf.md)                                   | Constructs a new \\\<tt\\>java.lang.String\\\</tt\\> object from an array of characters in modified UTF-8 encoding.                                                                                                                                                                              |
| [NewWeakGlobalRef](/engine/6000.0/script-reference/unityengine/androidjni/newweakglobalref.md)                           | Creates a new global weak reference to the object referred to by the \\\<tt\\>obj\\\</tt\\> argument.                                                                                                                                                                                            |
| [PopLocalFrame](/engine/6000.0/script-reference/unityengine/androidjni/poplocalframe.md)                                 | Pops off the current local reference frame, frees all the local references, and returns a local reference in the previous local reference frame for the given \\\<tt\\>result\\\</tt\\> object.                                                                                                  |
| [PushLocalFrame](/engine/6000.0/script-reference/unityengine/androidjni/pushlocalframe.md)                               | Creates a new local reference frame, in which at least a given number of local references can be created.                                                                                                                                                                                        |
| [RegisterNatives](/engine/6000.0/script-reference/unityengine/androidjni/registernatives.md)                             | Registers native methods with the class specified by the clazz argument.                                                                                                                                                                                                                         |
| [SetBooleanArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/setbooleanarrayelement.md)               | Sets the boolean value of one element in a primitive array.                                                                                                                                                                                                                                      |
| [SetBooleanField](/engine/6000.0/script-reference/unityengine/androidjni/setbooleanfield.md)                             | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [SetCharArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/setchararrayelement.md)                     | Sets the char value of one element in a primitive array.                                                                                                                                                                                                                                         |
| [SetCharField](/engine/6000.0/script-reference/unityengine/androidjni/setcharfield.md)                                   | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [SetDoubleArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/setdoublearrayelement.md)                 | Sets the double value of one element in a primitive array.                                                                                                                                                                                                                                       |
| [SetDoubleField](/engine/6000.0/script-reference/unityengine/androidjni/setdoublefield.md)                               | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [SetFloatArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/setfloatarrayelement.md)                   | Sets the float value of one element in a primitive array.                                                                                                                                                                                                                                        |
| [SetFloatField](/engine/6000.0/script-reference/unityengine/androidjni/setfloatfield.md)                                 | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [SetIntArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/setintarrayelement.md)                       | Sets the int value of one element in a primitive array.                                                                                                                                                                                                                                          |
| [SetIntField](/engine/6000.0/script-reference/unityengine/androidjni/setintfield.md)                                     | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [SetLongArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/setlongarrayelement.md)                     | Sets the long value of one element in a primitive array.                                                                                                                                                                                                                                         |
| [SetLongField](/engine/6000.0/script-reference/unityengine/androidjni/setlongfield.md)                                   | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [SetObjectArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/setobjectarrayelement.md)                 | Sets an element of an \\\<tt\\>Object\\\</tt\\> array.                                                                                                                                                                                                                                           |
| [SetObjectField](/engine/6000.0/script-reference/unityengine/androidjni/setobjectfield.md)                               | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [SetSByteArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/setsbytearrayelement.md)                   | Sets the sbyte value of one element in a primitive array.                                                                                                                                                                                                                                        |
| [SetSByteField](/engine/6000.0/script-reference/unityengine/androidjni/setsbytefield.md)                                 | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [SetShortArrayElement](/engine/6000.0/script-reference/unityengine/androidjni/setshortarrayelement.md)                   | Sets the short value of one element in a primitive array.                                                                                                                                                                                                                                        |
| [SetShortField](/engine/6000.0/script-reference/unityengine/androidjni/setshortfield.md)                                 | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [SetStaticBooleanField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticbooleanfield.md)                 | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStaticCharField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticcharfield.md)                       | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStaticDoubleField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticdoublefield.md)                   | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStaticFloatField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticfloatfield.md)                     | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStaticIntField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticintfield.md)                         | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStaticLongField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticlongfield.md)                       | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStaticObjectField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticobjectfield.md)                   | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStaticSByteField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticsbytefield.md)                     | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStaticShortField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticshortfield.md)                     | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStaticStringField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticstringfield.md)                   | Sets the value of a static field in the specified object.                                                                                                                                                                                                                                        |
| [SetStringField](/engine/6000.0/script-reference/unityengine/androidjni/setstringfield.md)                               | Sets the value of an instance field of the specified object.                                                                                                                                                                                                                                     |
| [Throw](/engine/6000.0/script-reference/unityengine/androidjni/throw.md)                                                 | Causes a \\\<tt\\>java.lang.Throwable\\\</tt\\> object to be thrown.                                                                                                                                                                                                                             |
| [ThrowNew](/engine/6000.0/script-reference/unityengine/androidjni/thrownew.md)                                           | Constructs an exception object from the specified class with the \\\<tt\\>message\\\</tt\\> specified by message and causes that exception to be thrown.                                                                                                                                         |
| [ToBooleanArray](/engine/6000.0/script-reference/unityengine/androidjni/tobooleanarray.md)                               | Converts a managed array of System.Boolean to a Java array of \\\<tt\\>boolean\\\</tt\\>.                                                                                                                                                                                                        |
| [ToCharArray](/engine/6000.0/script-reference/unityengine/androidjni/tochararray.md)                                     | Converts a managed array of System.Char to a Java array of \\\<tt\\>char\\\</tt\\>.                                                                                                                                                                                                              |
| [ToDoubleArray](/engine/6000.0/script-reference/unityengine/androidjni/todoublearray.md)                                 | Converts a managed array of System.Double to a Java array of \\\<tt\\>double\\\</tt\\>.                                                                                                                                                                                                          |
| [ToFloatArray](/engine/6000.0/script-reference/unityengine/androidjni/tofloatarray.md)                                   | Converts a managed array of System.Single to a Java array of \\\<tt\\>float\\\</tt\\>.                                                                                                                                                                                                           |
| [ToIntArray](/engine/6000.0/script-reference/unityengine/androidjni/tointarray.md)                                       | Converts a managed array of System.Int32 to a Java array of \\\<tt\\>int\\\</tt\\>.                                                                                                                                                                                                              |
| [ToLongArray](/engine/6000.0/script-reference/unityengine/androidjni/tolongarray.md)                                     | Converts a managed array of System.Int64 to a Java array of \\\<tt\\>long\\\</tt\\>.                                                                                                                                                                                                             |
| [ToObjectArray](/engine/6000.0/script-reference/unityengine/androidjni/toobjectarray.md)                                 | Converts a managed array of System.IntPtr, representing Java objects, to a Java array of \\\<tt\\>java.lang.Object\\\</tt\\>.                                                                                                                                                                    |
| [ToReflectedField](/engine/6000.0/script-reference/unityengine/androidjni/toreflectedfield.md)                           | Converts a field ID derived from cls to a \\\<tt\\>java.lang.reflect.Field\\\</tt\\> object.                                                                                                                                                                                                     |
| [ToReflectedMethod](/engine/6000.0/script-reference/unityengine/androidjni/toreflectedmethod.md)                         | Converts a method ID derived from clazz to a \\\<tt\\>java.lang.reflect.Method\\\</tt\\> or \\\<tt\\>java.lang.reflect.Constructor\\\</tt\\> object.                                                                                                                                             |
| [ToSByteArray](/engine/6000.0/script-reference/unityengine/androidjni/tosbytearray.md)                                   | Converts a managed array of System.SByte to a Java array of \\\<tt\\>byte\\\</tt\\>.                                                                                                                                                                                                             |
| [ToShortArray](/engine/6000.0/script-reference/unityengine/androidjni/toshortarray.md)                                   | Converts a managed array of System.Int16 to a Java array of \\\<tt\\>short\\\</tt\\>.                                                                                                                                                                                                            |
| [UnregisterNatives](/engine/6000.0/script-reference/unityengine/androidjni/unregisternatives.md)                         | Unregisters native methods of a class. The class goes back to the state before it was linked or registered with its native method functions.                                                                                                                                                     |
