Language

JniRuntime.JniValueManager.TryUnboxPeerObject(IJavaPeerable, Object) Method

Definition

Unwraps the built-in managed-object and exception proxy types.

protected virtual bool TryUnboxPeerObject(Java.Interop.IJavaPeerable value, out object? result);
abstract member TryUnboxPeerObject : Java.Interop.IJavaPeerable * obj -> bool
override this.TryUnboxPeerObject : Java.Interop.IJavaPeerable * obj -> bool

Parameters

value
IJavaPeerable

The mapped peer to inspect for a managed proxy.

result
Object

The wrapped managed object or exception on success; otherwise, null.

Returns

true when a supported proxy was recognized; 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