This function allows you to trigger a function of your own when an annotation has been added.
Parameters
- docuViewareID
- The identifier for the DocuVieware™ instance.
- callback
- The function you want to execute on event.
- The callback provides an argument having a prototype { newMode }.
- - newMode is a boolean value: true when the fullscreen mode has been turned on, false when it has been turned off.
- The callback provides an argument having a prototype { newMode }.
Return Value
1 if error.
Example of usage
This JavaScript makes sure the DocuVieware control is properly loaded and initialized and then subscribes to the event on load to display the fullscreen state in the console.