Compartilhar via


Proxy Constructors

Definition

Overloads

Proxy(IInvocationHandler)

Constructs a new Proxy instance from a subclass (typically, a dynamic proxy class) with the specified value for its invocation handler.

Proxy(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Proxy(IInvocationHandler)

Constructs a new Proxy instance from a subclass (typically, a dynamic proxy class) with the specified value for its invocation handler.

[Android.Runtime.Register(".ctor", "(Ljava/lang/reflect/InvocationHandler;)V", "")]
protected Proxy (Java.Lang.Reflect.IInvocationHandler h);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/reflect/InvocationHandler;)V", "")>]
new Java.Lang.Reflect.Proxy : Java.Lang.Reflect.IInvocationHandler -> Java.Lang.Reflect.Proxy

Parameters

h
IInvocationHandler

the invocation handler for this proxy instance

Attributes

Remarks

Constructs a new Proxy instance from a subclass (typically, a dynamic proxy class) with the specified value for its invocation handler.

Java documentation for java.lang.reflect.Proxy.Proxy(java.lang.reflect.InvocationHandler).

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

Proxy(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Proxy (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.Reflect.Proxy : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.Reflect.Proxy

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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