Language

JavaPeerProxy.ShouldSkipActivation(IntPtr) Method

Definition

Determines whether the UCO constructor callback should skip activation for a JNI handle.

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 current thread's WithinNewObjectScope flag is set; otherwise, false.

Remarks

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

Applies to