ReclaimHandler class

@fileoverview Runs callback when object is reclaimed. This is useful for adding a handler that runs when a certain object is reclaimed. To use, register this object as a reclaimable of that object using registerReclaimable().

Inheritance

Constructors

ReclaimHandler(VoidFunction _callback)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

assertNotReclaimed() → void
inherited
assertReclaimed() → void
inherited
beforeReclaim() Future<Null>
Performs preparation for reclaim on all owned reclaimables once, then reclaims this object.
inherited
beforeReclaimInternal() Future<Null>
Provide asynchronous behaviour which must execute before reclaim.
inherited
getId() String
Gets the unique ID for the instance of this component. If the instance doesn't already have an ID, generates one on the fly. @return {string} Unique component ID.
inherited
isNotReclaimed() bool
@return {bool} Whether the object has not been reclaimed of. @override
inherited
isReclaimed() bool
@return {bool} Whether the object has been reclaimed of. @override
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reclaim() → void
Reclaims of the object. If the object hasn't already been reclaimed of, calls {@link #reclaimInternal}. Classes that extend {@code goog.Reclaimable} should override {@link #reclaimInternal} in order to delete references to COM objects, DOM nodes, and other reclaimable objects. Reentrant.
inherited
reclaimInternal() → void
Overridable
override
registerReclaimable(IReclaimable reclaimable) → void
Chains together objects, so when over is reclaimed, children are reclaimed
inherited
toString() String
A string representation of this object.
inherited
unregisterReclaimable(IReclaimable reclaimable) → void
inherited
waitUntilReclaimed<T>(Future<T> future) Future<T>
Disconnects the future from the the thread on this object if the object is reclaimed.
inherited

Operators

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