RegisterNatives(nint, JNINativeMethod[])
Registers native methods with the class specified by the clazz argument.
阅读时间1 分钟最后更新于 21 天前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
RegisterNatives(IntPtr, JNINativeMethod[])
public static int RegisterNatives(nint clazz, JNINativeMethod[] methods)
Parameters
Returns
Type | Description |
|---|---|
| int | Zero on success, negative value on error. Falsely succeeds in Editor. |
Remarks
See JNINativeMethod.fnPtr for details.
Additional Resources: Java Native Interface Specification (Oracle)