AndroidJavaObject Manual     Reference     Scripting  
Scripting > Runtime Classes > AndroidJavaObject
AndroidJavaObject Inherits from IDisposable

AndroidJavaObject is the Unity representation of a generic instance of java.lang.Object.

It can be used as type-less interface to an instance of any Java class.

Constructors
AndroidJavaObject

Construct an AndroidJavaObject based on the name of the class.

Functions
Dispose

IDisposable callback

Call

Calls a Java method on an object (non-static).

CallStatic

Call a static Java method on a class.

Get.<FieldType>

Get the value of a field in an object (non-static).

Set.<FieldType>

Set the value of a field in an object (non-static).

GetStatic.<FieldType>

Get the value of a static field in an object type.

SetStatic.<FieldType>

Set the value of a static field in an object type.

GetRawObject

Retrieve the raw jobject pointer to the Java object.

GetRawClass

Retrieve the raw jclass pointer to the Java class;

Call.<ReturnType>

Call a Java method on an object.

CallStatic.<ReturnType>

Call a static Java method on a class.