initAndroid function
- NativePointer jniEnv,
- NativePointer context
Gives the library the Java VM and the app context that it needs on Android.
Call it before creating a runtime. jniEnv is the calling thread's
JNIEnv*, and context is an Android Context, such as the application.
See mln_android_init in the
C API reference.
Implementation
void initAndroid(NativePointer jniEnv, NativePointer context) {
ensureAbiVersion();
return _check(
raw.mln_android_init(
Pointer<Void>.fromAddress(jniEnv.address).cast(),
Pointer<Void>.fromAddress(context.address).cast(),
nativeDiagnostic,
),
);
}