# Call

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

## Definition

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

## Call\<T>(string, \`\<>\[])

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

```csharp
public void Call<T>(string methodName, T[] args)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Specifies which method to call.**** (\[\<T>\[]]\(./)): An array of parameters passed to the method.

### 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).

```csharp
public void Call<T>(nint methodID, T[] args)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The ID of the method to call.**** (\[\<T>\[]]\(./)): An array of parameters passed to the method.

### 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).

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

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Specifies which method to call.**** (\[Object\[]]\(https\://learn.microsoft.com/dotnet/api/system.object)): An array of parameters passed to the method.

### 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).

```csharp
public void Call(nint methodID, params object[] args)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The ID of the method to call.**** (\[Object\[]]\(https\://learn.microsoft.com/dotnet/api/system.object)): An array of parameters passed to the method.

### 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.

```csharp
public ReturnType Call<ReturnType, T>(string methodName, T[] args)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Specifies which method to call.**** (\[\<T>\[]]\(./)): An array of parameters passed to the method.

### 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).

```csharp
public ReturnType Call<ReturnType, T>(nint methodID, T[] args)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The ID of the method to call.**** (\[\<T>\[]]\(./)): An array of parameters passed to the method.

### 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.

```csharp
public ReturnType Call<ReturnType>(string methodName, params object[] args)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Specifies which method to call.**** (\[Object\[]]\(https\://learn.microsoft.com/dotnet/api/system.object)): An array of parameters passed to the method.

### 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).

```csharp
public ReturnType Call<ReturnType>(nint methodID, params object[] args)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The ID of the method to call.**** (\[Object\[]]\(https\://learn.microsoft.com/dotnet/api/system.object)): An array of parameters passed to the method.

### Returns

| Type | Description |
| ---- | ----------- |
| T    |             |

### Remarks

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