Main Content
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
Event1
andEvent2
toEventAccess
; only methods of theEventAccess
can trigger these events.Gives listen access for
Event1
andEvent2
to methods ofClassA
andClassB
. Methods ofEventAccess
,ClassA
, andClassB
can define listeners for these events. Subclasses ofMyClass
cannot define listeners for these events.