Interface SpaceAddedEventManager

All Known Subinterfaces:
InternalSpaceAddedEventManager
All Known Implementing Classes:
DefaultSpaceAddedEventManager

public interface SpaceAddedEventManager
An event manager allowing to add and remove SpaceAddedEventListeners.

A Space is added when its first SpaceInstance is discovered. It is removed when there are no SpaceInstances.

Author:
kimchy
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds an event listener.
    void
    add(SpaceAddedEventListener eventListener, boolean includeExisting)
    Adds an event listener allowing to control using the includeExisting if events will be fired for existing spaces as well.
    void
    Removes an event listener.
  • Method Details

    • add

      void add(SpaceAddedEventListener eventListener)
      Adds an event listener. Note, the event will also be called for all currently discovered Spaces.
    • add

      void add(SpaceAddedEventListener eventListener, boolean includeExisting)
      Adds an event listener allowing to control using the includeExisting if events will be fired for existing spaces as well.
    • remove

      void remove(SpaceAddedEventListener eventListener)
      Removes an event listener.