Gets a wrapper for the current thread's JNIEnv.
JNIEnv
Throws an exception if the current thread is not attached to the VM.
Ensures that the current thread is attached to the VM and calls fn. (This isn't necessary in callbacks from Java.)
fn
Function to run while attached to the VM.
Tries to get a wrapper for the current thread's JNIEnv.
Returns null if the current thread is not attached to the VM.
null
Generated using TypeDoc
Gets a wrapper for the current thread's
JNIEnv
.Throws an exception if the current thread is not attached to the VM.