See the example for how to use an this class as a listener.
Responsibilities:
For example if a layer is added the layerAdded method is called.
The following example adds an observer/listener that only reacts to single layer added events... Note that multiple layers being added are ignored .