AndroidJavaObject
Construct an AndroidJavaObject based on the name of the class.
Read time 2 minutesLast updated 5 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
AndroidJavaObject(string, string[])
Construct an AndroidJavaObject based on the name of the class.
public AndroidJavaObject(string className, string[] args)
Parameters
Remarks
This essentially means locate the class type, allocate an object and run the specified constructor.
AndroidJavaObject(string, AndroidJavaObject[])
Construct an AndroidJavaObject based on the name of the class.
public AndroidJavaObject(string className, AndroidJavaObject[] args)
Parameters
Specifies the Java class name (e.g. "\<tt\>java.lang.String\</tt\>" or "\<tt\>java/lang/String\</tt\>").
An array of parameters passed to the constructor.
Remarks
This essentially means locate the class type, allocate an object and run the specified constructor.
AndroidJavaObject(string, AndroidJavaClass[])
Construct an AndroidJavaObject based on the name of the class.
public AndroidJavaObject(string className, AndroidJavaClass[] args)
Parameters
Specifies the Java class name (e.g. "\<tt\>java.lang.String\</tt\>" or "\<tt\>java/lang/String\</tt\>").
An array of parameters passed to the constructor.
Remarks
This essentially means locate the class type, allocate an object and run the specified constructor.
AndroidJavaObject(string, AndroidJavaProxy[])
Construct an AndroidJavaObject based on the name of the class.
public AndroidJavaObject(string className, AndroidJavaProxy[] args)
Parameters
Specifies the Java class name (e.g. "\<tt\>java.lang.String\</tt\>" or "\<tt\>java/lang/String\</tt\>").
An array of parameters passed to the constructor.
Remarks
This essentially means locate the class type, allocate an object and run the specified constructor.
AndroidJavaObject(string, AndroidJavaRunnable[])
Construct an AndroidJavaObject based on the name of the class.
public AndroidJavaObject(string className, AndroidJavaRunnable[] args)
Parameters
Specifies the Java class name (e.g. "\<tt\>java.lang.String\</tt\>" or "\<tt\>java/lang/String\</tt\>").
An array of parameters passed to the constructor.
Remarks
This essentially means locate the class type, allocate an object and run the specified constructor.
AndroidJavaObject(string, Object[])
Construct an AndroidJavaObject based on the name of the class.
public AndroidJavaObject(string className, params object[] args)
Parameters
Remarks
This essentially means locate the class type, allocate an object and run the specified constructor.
AndroidJavaObject(IntPtr)
Create AndroidJavaObject for existing Java object.
public AndroidJavaObject(IntPtr jobject)
Parameters
A reference to existing Java object.
Remarks
Does not take ownership of passed reference, you still have to delete it.
AndroidJavaObject(IntPtr, IntPtr, Object[])
Create AndroidJavaObject (and it's Java counterpart) using given Java class and constructor.
public AndroidJavaObject(IntPtr clazz, IntPtr constructorID, params object[] args)