Interface ISystemEventDispatcher

  • All Known Subinterfaces:
    IApplication

    public interface ISystemEventDispatcher
    Implemented by the system event dispatcher.
    API:
    This is a public API.
    • Method Detail

      • addSystemEventListener

        void addSystemEventListener​(EnumSet<SystemEventCategory> categories,
                                    ISystemEventListener listener)
        Adds the given listener and invokes it, if an event of the given categories is received. The same listener object will only be added once per categegory.
        Parameters:
        categories - the categories to listen to
        listener - the listener to add
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.
      • removeSystemEventListener

        void removeSystemEventListener​(EnumSet<SystemEventCategory> categories,
                                       ISystemEventListener listener)
        Removes the given event listener from the given categories. Specifying more categories than the listener is registered for does no harm.
        Parameters:
        categories - the categories to remove the listener from
        listener - the listener to remove
        API:
        This public API is available in IvyScript and Java. It has the visibility ADVANCED.