Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RegisterNatives(nint, JNINativeMethod[])

Registers native methods with the class specified by the clazz argument.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

RegisterNatives(IntPtr, JNINativeMethod[])

public static int RegisterNatives(nint clazz, JNINativeMethod[] methods)

Parameters

clazz

The Java class to register the native methods with.

The native methods to register.

Returns

Type

Description

intZero on success, negative value on error. Falsely succeeds in Editor.

Remarks

See JNINativeMethod.fnPtr for details.