Language

Runtime.IsGCUserPeer Method

Definition

Overloads

Name Description
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.

IsGCUserPeer(IJavaObject)

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

public static bool IsGCUserPeer(Android.Runtime.IJavaObject value);
static member IsGCUserPeer : Android.Runtime.IJavaObject -> bool

Parameters

value
IJavaObject

The managed Java object to inspect; null returns false.

Returns

true when the Java peer passes the runtime type test; otherwise, false.

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.

Applies to

IsGCUserPeer(IntPtr)

Tests a JNI handle for the runtime GC peer interface.

public static bool IsGCUserPeer(IntPtr value);
static member IsGCUserPeer : nativeint -> bool

Parameters

value
IntPtr

nativeint

A live JNI reference usable on this thread, or Zero to return false. Keep the reference valid until the test completes.

Returns

true if the handle identifies a GC user peer; false for a zero handle or a failed type match.

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.

Applies to