classdef EventData < event.EventData
    % The EventData class is a way to pass data to notified listener
    % callback functions. When notifying listeners of events, construct a
    % new instance of EventData and pass it the data. This class is
    % very generic. If multiple pieces of data are required, a cell array
    % or struct could be passed. Listener callback functions know if they
    % are expecting event data and how to deal with it.
    
    % Copyright 2022 The MathWorks, Inc.
    
    properties
        Data
    end
    
    methods
        function eventData = EventData(data)
        eventData.Data = data;
        end
    end
end
