Class: Toybox.Lang.WeakReference
- Inherits:
-
Toybox.Lang.Object
Overview
A weak reference is a loosely bound reference to another object. If all
strong references have been freed, the WeakReference.get()
method will
return null
. This allows the developer to avoid circular references.
See Also:
Instance Method Summary collapse
-
get() as Lang.Object or Null
Get the Object referenced by the WeakReference.
-
stillAlive() as Lang.Boolean
Determine whether a WeakReference is still alive.
Instance Method Details
get() as Lang.Object or Null
Get the Object referenced by the WeakReference
stillAlive() as Lang.Boolean
Determine whether a WeakReference is still alive.
Note:
I feel FANTASTIC and I am still alive. When you're dying I'll be still alive. And when you're dead I will be still alive.