Teanga

JavaPeerProxy.ShouldSkipActivation(IntPtr) Method

Definition

Returns true when the UCO constructor callback should skip activation because a managed peer already exists for the given JNI handle (e.g., when called from FinishCreateInstance after StartCreateInstance already registered the peer).

public static bool ShouldSkipActivation(IntPtr jniSelf);
static member ShouldSkipActivation : nativeint -> bool

Parameters

jniSelf
IntPtr

nativeint

The JNI handle whose mapped peer is inspected.

Returns

true if an existing peer has neither activation flag, or the thread is inside the NewObject helper; otherwise, false.

Remarks

A peer marked Activatable or Replaceable is not by itself a reason to skip activation.

Applies to