exportMethod

There are two methods to link external (or native in Java) methods to their native implementation:

  1. Expose functions with names like Java_some_package_ClassName_methodName.

  2. Use RegisterNative inside a JNI_OnLoad.

See details about it on JniExportMethod.ExposeFunctions and JniExportMethod.RegisterNatives.