Class: WebViewerServerAnnotationManager

Core. WebViewerServerAnnotationManager

An object which manages anonymous user annotations when using WebViewerServer.

new WebViewerServerAnnotationManager(serverRoot, docViewer)

Creates a new instance of WebViewerServerAnnotationManager. * Note: As of version 6.3, directly constructing a WebViewerServerAnnotationManager is deprecated and the capability will be removed in a future version. Please use the CoreControls#getBlackBoxAnnotationManager function instead.
Parameters:
Name Type Description
serverRoot string The webViewerServer annotation server to contact for annot storing.
docViewer Core.DocumentViewer

Methods


disableCollaboration()

Disables collaboration by closing the annotation server connection.

initiateCollaboration(The)

Opens a connection to the annotation server and sets up collaboration.
Parameters:
Name Type Description
The string document ID of the object to intiate annotation collaboration on.

preloadAnnotations(An)

Preloads existing annotations made without realtime collaboration enabled, will only trigger once on initial collaboration enabling event.
Parameters:
Name Type Description
An Array.<Core.Annotations.Annotation> array of annotation objects.

Events


webViewerServerAnnotationsDisabled

Triggered when collaboration has abruptly closed or been disabled. Attach like webViewerServerAnnotManager.addEventListener('webViewerServerAnnotationsDisabled', callback)

webViewerServerAnnotationsEnabled

Triggered when collaboration is enabled for webViewerServer. Attach like webViewerServerAnnotManager.addEventListener('webViewerServerAnnotationsEnabled', callback)
Parameters:
Name Type Description
username string user name as specified by webViewerServer collaboration.
userId string user ID as specified by webViewerServer collaboration.