The content of this page has been automatically translated by AI. If you encounter any problems while reading, you can view the corresponding content in Chinese.

Event Callbacks

Last updated: 2024-12-23 10:58:06

Event Listening

Use the interactive whiteboard's on method for event listening, with the event name being TEduBoard.EVENT. + event name.
// For example, listen to the whiteboard error event
teduBoard.on(TEduBoard.EVENT.TEB_ERROR, (errorCode, errorMessage) => {
console.log('======================: ', 'TEB_ERROR', ' errorCode:', errorCode, ' errorMessage:', errorMessage);
});

Event Unregistering

Use the interactive whiteboard's off method for event unregistration, with the event name being TEduBoard.EVENT. + event name.
// For example, unregister the whiteboard error event
teduBoard.off(TEduBoard.EVENT.TEB_ERROR);

Lifecycle Events

Event name
Description
Interactive Whiteboard Initialization Event
Callback for the completion of the whiteboard historical data synchronization
Interactive Whiteboard Offline Alert

Error Event

Be sure to listen to this event, as it will be triggered when the interactive whiteboard becomes unavailable.
Event name
Description
Interactive Whiteboard Error Event

Warnings

Please make sure to listen to this event. It will be triggered when performing any illegal operation on the TIW.
Event name
Description
Interactive Whiteboard Warning Event

Data Synchronization Event

Be sure to listen to this event, as any operations on the interactive whiteboard will trigger this event. The event callback data will be transmitted to other ends for synchronization via signaling transmission.
Event name
Description
Interactive Whiteboard Synchronization Data Event

Interactive Whiteboard File Event

Event name
Description
New Ordinary File Event
New H5 File Event
New Image File Event
Adding a transcoding file event
Deleting a TIW event
Deleting a file event
Switching file event

Interactive Whiteboard Operation Events

Event name
Description
Adding a TIW event
Adding an element event
TIW zoom event
Redirecting to a TIW page event
Animation PPT step change event
Refreshing a TIW event
Selecting elements with the marquee tool event
Event for setting the interactive whiteboard background image
Screenshot event
Event for remote interactive whiteboard zoom and move status
Callback for whiteboard annotation change
Whiteboard move callback
Callback for coordinate position when customizing mouse style
Callback for element position change

Interactive Whiteboard Element Events

Event name
Description
Element deletion event
Mathematical Function Graph Tool Events
Event for text component status
Interactive whiteboard text tool abnormal warning event

Interactive Whiteboard Status Events

Event name
Description
Media playback status change event
File upload progress change event
File upload status change event
Interactive whiteboard background H5 loading status change event
Interactive whiteboard H5 file loading status change event
Animation PPT loading status change event
Interactive whiteboard image element loading change event
Interactive whiteboard background image loading status change event
Interactive whiteboard recoverable status change event
Interactive whiteboard undo status change event
Video playback status change event