Dela via


Reference.Clear Method

Definition

Clears this reference object.

[Android.Runtime.Register("clear", "()V", "GetClearHandler")]
public virtual void Clear ();
[<Android.Runtime.Register("clear", "()V", "GetClearHandler")>]
abstract member Clear : unit -> unit
override this.Clear : unit -> unit
Attributes

Remarks

Clears this reference object. Invoking this method will not cause this object to be enqueued.

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

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

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