Appendix 1: Zoomify Image Viewer Callbacks

List Of Viewer Callbacks

The Zoomify Image Viewer supports many built-in callbacks. These options cover key operations of the Viewre and are listed below.

In addition to these built-in callbacks, creation of custom callbacks is quite easy. Simply adding a validation call at the desired point in the code - that is, at the point of execution when an action is complete or otherwise warrants the callback to be created.

For example:

     Z.Utils.validateCallback('myCustomCallback');

Next - step 2 of 2 - set a callback. This requires naming the function to execute when the callback is validated:

     Z.setCallback('viewUpdateComplete', showViewChanged)"

See the example titled "Set-Callback" in the product Viewer Examples folder to see this two-step process implemented.

Built-in callbacks include:

 

 

 
 
annotationsLoaded currentLabelChangedGetID drawLabelsOnCanvasComplete
hotspotsLoaded labelCreated labelCreatedGetInternalID
labelSaved labelSavedGetJSONObject labelSelectedInViewportGetIDs
loadingTilesComplete loadingTilesCompleteGetLabelIDs loadingTilesFullImageComplete
navigatorInitialized noteSaved panConstrained
poiSaved rulerInitialized screensaverStarting
slideshowLoaded toolbarInitialized tourLoaded
viewChanged viewUpdateComplete viewUpdateCompleteGetLabelIDs
viewZoomingGetCurrentZoom viewerInitialized viewportInitialized
zoomConstrainedMax zoomConstrainedMin readyViewer

Copyright © 1999-2015 Zoomify, Inc.
All Rights Reserved