Skip to content

notify

Trigger an event on a handle object.

notify(Hsource, EventName)
notify(Hsource, EventName, eventdata)

Fires the named event on Hsource, calling all listeners attached via addlistener. The optional eventdata is passed to each listener as its second argument.

notify(obj, 'StateChanged')
  • addlistener — Subscribe a callback to an event of a handle object.
  • events — List the events declared by a class.