Skip to content

events

List the events declared by a class.

s = events(object)
s = events(classname)
s = events(..., '-full')

Returns a cell array of event names declared by the class. Events are class-level signals that observers can subscribe to via addlistener.

events(myObject)
  • addlistener — Subscribe a callback to an event of a handle object.
  • notify — Trigger an event on a handle object.
  • methods — List the methods of a class or object.
  • properties — List the properties of a class or object.