# GetMethodID(nint, string, string)

> Returns the method ID for an instance (nonstatic) method of a class or interface.

## Definition

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

## GetMethodID(IntPtr, string, string)

```csharp
public static nint GetMethodID(nint clazz, string name, string sig)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The Java class to scan.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the method, as declared in Java.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The JNI method signature.

### Returns

| Type                                                           | Description                                             |
| -------------------------------------------------------------- | ------------------------------------------------------- |
| [IntPtr](https://learn.microsoft.com/dotnet/api/system.intptr) | The method ID, or zero if the method couldn't be found. |

### Remarks

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
