Event Access List
This class declares an access list for the event ListenAccess attribute:
classdef EventAccess events (NotifyAccess = private, ListenAccess = {?ClassA, ?ClassB}) Event1 Event2 end end
The class EventAccess specifies the following event access:
Limits notify access for
Event1andEvent2toEventAccess; only methods of theEventAccesscan trigger these events.Gives listen access for
Event1andEvent2to methods ofClassAandClassB. Methods ofEventAccess,ClassA, andClassBcan define listeners for these events. Subclasses ofEventAccesscannot define listeners for these events.