Event Listeners
As there are different kind of events that you might be interested in, the viewer has an event system to listen to them. The event listener is called whenever this event is emitted. The event listener is added with a callback and can be removed with the token that has been received.
In the following example, we register an event listener whenever the scene has been customized.