The SDK event model uses three classes:
- MEventSource and its subclasses generate events.
- The MEvent class has subclasses for the different types of events.
- An event listener with an onEvent() method listens to events and performs the appropriate actions.
The event source generates the appropriate event instances and calls the onEvent() method of each listener the application added to that source.