Piccolo.NET

PNotificationCenter.AddListener Method 

Registers the listener to receive notifications with the specified notification name and/or containing the given object.

public virtual void AddListener(
   object listener,
   string callbackMethodName,
   string notificationName,
   object obj
);

Parameters

listener
The listener to register.
callbackMethodName
The name of the method to invoke on the listener.
notificationName
The name of notifications the listener would like to receive.
obj
The object for which the listener would like to recieve associated notifications.

Remarks

When a matching notification is posted, the 'callBackMethodName' message will be sent to the listener with a single PNotification argument. If the notification name is null, the listener will receive all notifications with an object matching the given object. If the object is null, the listener will receive all notifications with the notification name.

See Also

PNotificationCenter Class | UMD.HCIL.PiccoloX.Events Namespace


Web Accessibility