This version of Unity is unsupported.

AndroidJavaObject.Call

Declaration

public void Call(string methodName, params object[] args);

Declaration

public void Call(string methodName, T[] args);

Parameters

methodName Specifies which method to call.
args An array of parameters passed to the method.

Description

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

To call a method with return type 'void', use the regular version.


Declaration

public ReturnType Call(string methodName, params object[] args);

Declaration

public ReturnType Call(string methodName, T[] args);

Parameters

methodName Specifies which method to call.
args An array of parameters passed to the method.

Description

Call a Java method on an object.

To call a Java method with a non-void return type, use the generic version.


Declaration

public void Call(IntPtr methodID, params object[] args);

Declaration

public void Call(IntPtr methodID, T[] args);

Parameters

args An array of parameters passed to the method.
methodID The ID of the method to call.

Description

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

To call a method with return type 'void', use the regular version.


Declaration

public ReturnType Call(IntPtr methodID, params object[] args);

Declaration

public ReturnType Call(IntPtr methodID, T[] args);

Parameters

args An array of parameters passed to the method.
methodID The ID of the method to call.

Description

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

To call a Java method with a non-void return type, use the generic version.