Language

JniRuntime.JniValueManager.ActivatePeer Method

Definition

Overloads

Name Description
ActivatePeer(IJavaPeerable, JniObjectReference, ConstructorInfo, Object[])

Provides the legacy activation hook with an optional existing managed peer.

ActivatePeer(JniObjectReference, Type, ConstructorInfo, Object[])

Activates a managed peer for a Java instance through the derived implementation.

ActivatePeer(IJavaPeerable, JniObjectReference, ConstructorInfo, Object[])

Provides the legacy activation hook with an optional existing managed peer.

public abstract void ActivatePeer(Java.Interop.IJavaPeerable? self, Java.Interop.JniObjectReference reference, System.Reflection.ConstructorInfo cinfo, object?[]? argumentValues);
abstract member ActivatePeer : Java.Interop.IJavaPeerable * Java.Interop.JniObjectReference * System.Reflection.ConstructorInfo * obj[] -> unit

Parameters

self
IJavaPeerable

The optional existing managed peer supplied to the legacy activation implementation.

reference
JniObjectReference

The Java peer reference used for activation.

cinfo
ConstructorInfo

The activation constructor metadata.

argumentValues
Object[]

The constructor arguments.

Remarks

Allocation and constructor invocation are supplied by the derived implementation.

Applies to

ActivatePeer(JniObjectReference, Type, ConstructorInfo, Object[])

Activates a managed peer for a Java instance through the derived implementation.

public abstract void ActivatePeer(Java.Interop.JniObjectReference reference, Type type, System.Reflection.ConstructorInfo cinfo, object?[]? argumentValues);
abstract member ActivatePeer : Java.Interop.JniObjectReference * Type * System.Reflection.ConstructorInfo * obj[] -> unit

Parameters

reference
JniObjectReference

The Java peer reference used for activation.

type
Type

The managed type to activate.

cinfo
ConstructorInfo

The activation constructor to invoke.

argumentValues
Object[]

The constructor arguments supplied by the caller.

Remarks

The implementation controls allocation and invocation of the activation constructor.

Applies to