JGlobalReference class final

A managed JNI global reference.

Uses a NativeFinalizer to delete the JNI global reference when finalized.

Inheritance

Constructors

JGlobalReference(Pointer<Void> pointer)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isNull → bool
Whether the underlying JNI reference is null or not.
no setteroverride
isReleased → bool
Whether the underlying JNI reference is deleted or not.
no setteroverride
pointer → JObjectPtr
The underlying JNI reference.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Deletes the underlying JNI reference and marks this as released.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited