Call
Calls a Java method on an object (non-static).
Read time 2 minutesLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
Call<T>(string, `<>[])
Calls a Java method on an object (non-static).
public void Call<T>(string methodName, T[] args)
Parameters
Remarks
To call a method with return type 'void', use the regular version.
Call<T>(IntPtr, `<>[])
Calls a Java method on an object (non-static).
public void Call<T>(nint methodID, T[] args)
Parameters
Remarks
To call a method with return type 'void', use the regular version.
Call(string, Object[])
Calls a Java method on an object (non-static).
public void Call(string methodName, params object[] args)
Parameters
Remarks
To call a method with return type 'void', use the regular version.
Call(IntPtr, Object[])
Calls a Java method on an object (non-static).
public void Call(nint methodID, params object[] args)
Parameters
Remarks
To call a method with return type 'void', use the regular version.
Call<T, U>(string, `<T>[])
Call a Java method on an object.
public ReturnType Call<ReturnType, T>(string methodName, T[] args)
Parameters
Returns
Type | Description |
|---|---|
| T |
Remarks
To call a Java method with a non-void return type, use the generic version.
Call<T, U>(IntPtr, `<T>[])
Calls a Java method on an object (non-static).
public ReturnType Call<ReturnType, T>(nint methodID, T[] args)
Parameters
Returns
Type | Description |
|---|---|
| T |
Remarks
To call a Java method with a non-void return type, use the generic version.
Call<T>(string, Object[])
Call a Java method on an object.
public ReturnType Call<ReturnType>(string methodName, params object[] args)
Parameters
Returns
Type | Description |
|---|---|
| T |
Remarks
To call a Java method with a non-void return type, use the generic version.
Call<T>(IntPtr, Object[])
Calls a Java method on an object (non-static).
public ReturnType Call<ReturnType>(nint methodID, params object[] args)
Parameters
Returns
Type | Description |
|---|---|
| T |
Remarks
To call a Java method with a non-void return type, use the generic version.