Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Events

Define and trigger events; create listeners that respond to events

Events are notices broadcast when some change or action occurs involving an object. Listeners define functions that execute when specific events occur. Classes can define and trigger events. MATLAB® can trigger predefined events when code accesses object properties.

Functions

events Event names
handle.notify Notify listeners that event is occurring
handle.addlistener Create event listener
event.hasListener Determine if listeners exist for event

Classes

event.EventData Base class for event data
event.listener Class defining listener objects
event.PropertyEvent Data for property events
event.proplistener Define listener object for property events
Was this topic helpful?