event.EventData

Base class for all data objects passed to event listeners

Description

The event.EventData class defines the event data objects passed to listeners. When you trigger an event using the notify handle class method, MATLAB® assigns values to the properties of the event.EventData object that is passed to the listener callback function (the event handler).

If you want to provide additional information to event listeners, you can do so by subclassing event.EventData. See Defining Event-Specific Data for more information.

    Note:   Subclasses of event.EventData must set the class ConstructOnLoad attribute.

Properties

The event.EventData class defines two properties and no methods:

  • EventName — The name of the event described by this data object.

  • Source — The source object whose class defines the event described by the data object.

Was this topic helpful?