ID of the instance
Whether or not the viewer instance has been bootstrapped
Name of the viewer instance
Viewer type
Activate lifecycle method that is invoked when the instance is becoming the IViewerCollection's active viewer
Promise that is resolved once activation is complete.
Bootstrap lifecycle method for one-time setup of the viewer instance.
This method is called after the instance's DOM element has been setup, but before any documents are loaded.
ID of the viewer instance's DOM element
The viewer collection the instance belongs to
Promise that is resolved once bootstrapping is complete.
CanDeactivate lifecycle method that is invoked when the IViewerCollection needs to determine if it is safe to unload a document
Whether or not it is safe to load a new item, deactivate the viewer, or teardown the viewer.
Deactivate lifecycle method that is invoked when the instance is no longer the IViewerCollection's active viewer
Promise that is resolved once deactivation is complete.
Load lifecycle method that is invoked when the viewer instance should load a document from the queue
Item to be loaded and displayed to the user
Promise that is resolved once the item has been loaded.
Reload lifecycle method that is invoked when the viewer instance should refresh all of it's data before reloading the current queue item
Promise that is resolved once the reload is complete.
Teardown lifecycle method for one-time teardown of the viewer instance.
This method is called when the IViewerCollection is being torn down.
Promise that is resolved once teardown is complete.
Instance of a viewer type that can be used view a document
The viewer instance belongs to a particular IViewerCollection, which controls which items to load