Language

JniEnvironment Class

Definition

Provides the current thread's JNI environment and managed JNI operation helpers.

public static class JniEnvironment
type JniEnvironment = class
Inheritance
JniEnvironment

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

Name Description
EnvironmentPointer

Gets the JNI environment pointer for the current thread.

JniVersion

Gets the JNI version reported by the current environment.

LocalReferenceCount

Gets the local-reference count tracked for the current thread.

Runtime

Gets the runtime associated with the current thread's JNI environment.

WithinNewObjectScope

Gets whether the current thread is inside the JNI NewObject helper.

Methods

Name Description
BeginMarshalMethod(IntPtr, JniTransition, JniRuntime)

Attempts to enter a managed JNI callback and initialize its transition.

EndMarshalMethod(JniTransition)

Ends a managed JNI callback transition.

Applies to