Open this page in the API Guide

Canvas.subscribeViewModeChanged Method

Fires when the viewmode if changed.