Piccolo.NET

PNotificationCenter Members

PNotificationCenter overview

Public Static Fields

NULL_MARKER Used to represent a null name or object in the listenersMap.

Public Static Properties

DefaultCenter Gets the default notification center for registering listeners.

Protected Static Fields

DEFAULT_CENTER The default notification center for registering listeners.

Public Instance Methods

AddListener Registers the listener to receive notifications with the specified notification name and/or containing the given object.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
PostNotificationOverloaded. Post the notification to this notification center.
RemoveListenerOverloaded. Unregisters the listener from recieving notifications matching notificationName and object.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

listenersMap A hash table of all listeners registered with this notification center.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MatchingKeys Gets all keys that match the name/object pair.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
ProcessDeadKeys Removes listeners that are mapped to keys which have been garbage collected.
RemoveListenerOverloaded. Removes the listener from the list mapped to the given key in the listeners map.

See Also

PNotificationCenter Class | UMD.HCIL.PiccoloX.Events Namespace