Language

JniHandleOwnership Enum

Definition

Specifies ownership and registration options for a JNI reference.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum JniHandleOwnership
[<System.Flags>]
type JniHandleOwnership = 
Inheritance
JniHandleOwnership
Attributes

Fields

Name Value Description
DoNotTransfer 0

Specifies that ownership of the JNI reference is not transferred.

TransferLocalRef 1

Transfers a local JNI reference for deletion after use.

TransferGlobalRef 2

Transfers a global JNI reference for deletion after use.

DoNotRegister 16

Requests that a constructed Java peer not be registered.

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