Language

Runtime Class

Definition

Exposes Android JNI reference counts and managed peer diagnostics.

public static class Runtime
type Runtime = class
Inheritance
Runtime

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
GlobalReferenceCount

Gets the global-reference count reported by the current JNI runtime.

LocalReferenceCount

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

MaxGlobalReferenceCount

Gets the configured Android global-reference limit.

Methods

Name Description
GetSurfacedObjects()
Obsolete.

Gets legacy weak references to currently surfaced managed peers.

IsGCUserPeer(IJavaObject)

Tests whether an object's Java peer implements the runtime GC peer interface.

IsGCUserPeer(IntPtr)

Tests a JNI handle for the runtime GC peer interface.

Applies to