Represents a callback listener for specific message types.
Used internally by EventDispatcher to store event listeners.
What does it unlock?
Event listener interface. Allows subscription to specific events from the configurator to receive real-time data updates.
Practical Application
Event listener interface. addEventListener() and removeEventListener() on Communicator. Subscribe to real-time
configurator events: state changes, viewport readiness, screenshots, showcase status, camera results, resolution changes.
AI Coding Best Practices
Set up listeners BEFORE sending commands that trigger them. Always clean up with removeEventListener on component unmount.
Key events: configuratorDataUpdated (every state change), viewportReady (init complete), screenshotReady (captures),
getCameraResult (camera queries), showcaseStatusChanged (demo playback).
Represents a callback listener for specific message types. Used internally by EventDispatcher to store event listeners.
What does it unlock?
Event listener interface. Allows subscription to specific events from the configurator to receive real-time data updates.
Practical Application
Event listener interface. addEventListener() and removeEventListener() on Communicator. Subscribe to real-time configurator events: state changes, viewport readiness, screenshots, showcase status, camera results, resolution changes.
AI Coding Best Practices
Set up listeners BEFORE sending commands that trigger them. Always clean up with removeEventListener on component unmount. Key events: configuratorDataUpdated (every state change), viewportReady (init complete), screenshotReady (captures), getCameraResult (camera queries), showcaseStatusChanged (demo playback).