Package: event
Class defining listener objects
The event.listener
class defines listener objects. Listener objects respond to a specific event by executing a callback function when the event is triggered. You can use the event.listener
class to construct a listener object. Also, you can create listeners using the handle addlistener
and listener
methods.
Use the handle notify
method to trigger an event.
The event.listener
class is a handle
class.
ConstructOnLoad | true |
HandleCompatible | true |
For information on class attributes, see Class Attributes.
eListener = event.listener(
creates a listener for the specified event name on the specified source objects and identifies a function handle to the callback function.eventSource
,eventName
,callbackFcn
)
If eventSource
is an array of object handles, the listener responds to the named event on any of the objects in the array.