Java.Lang.Ref.WeakReference Class
Implements a weak reference, which is the middle of the three types of references.

See Also: WeakReference Members

Syntax

[Android.Runtime.Register("java/lang/ref/WeakReference", DoNotGenerateAcw=true)]
public class WeakReference : Reference

Remarks

Implements a weak reference, which is the middle of the three types of references. Once the garbage collector decides that an object obj is is weakly-reachable, the following happens:

Weak references are useful for mappings that should have their entries removed automatically once they are not referenced any more (from outside). The difference between a SoftReference and a WeakReference is the point of time at which the decision is made to clear and enqueue the reference:

[Android Documentation]

Requirements

Namespace: Java.Lang.Ref
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1