# RegisterNatives(IntPtr, JNINativeMethod[])

> Registers native methods with the class specified by the clazz argument.

## Definition

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

```csharp
public static int RegisterNatives(IntPtr clazz, JNINativeMethod[] methods)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): **** (\[JNINativeMethod\[]]\(/engine/6000.0/script-reference/unityengine/jninativemethod)):&#x20;

### Returns

| Type                                                       | Description                                                           |
| ---------------------------------------------------------- | --------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Zero on success, negative value on error. Falsely succeeds in Editor. |

### Remarks

See [JNINativeMethod.fnPtr](/engine/6000.0/script-reference/unityengine/jninativemethod/fnptr.md) for details. Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
