Disposes this viewer instance by releasing all resources used by the viewer logic and deleting all inner objects and components created by the viewer in runtime.
The web page code should also delete the viewer instance variable as well to completely remove the viewer from the web browser memory.
If the web page code has registered event listeners directly on Viewer SDK components used by the viewer – or stored external references to such components – you must explicitly unregister such listeners by the web page code. And, you must delete such external component references before calling
Do not access the Viewer API anymore after
dispose() is called.