Share via


Reference.Enqueue Method

Definition

Adds this reference object to the queue with which it is registered, if any.

[Android.Runtime.Register("enqueue", "()Z", "GetEnqueueHandler")]
public virtual bool Enqueue ();
[<Android.Runtime.Register("enqueue", "()Z", "GetEnqueueHandler")>]
abstract member Enqueue : unit -> bool
override this.Enqueue : unit -> bool

Returns

true if this reference object was successfully enqueued; false if it was already enqueued or if it was not registered with a queue when it was created

Attributes

Remarks

Adds this reference object to the queue with which it is registered, if any.

This method is invoked only by Java code; when the garbage collector enqueues references it does so directly, without invoking this method.

Java documentation for java.lang.ref.Reference.enqueue().

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