Canvas.subscribeViewportResized Method

Subscribe an event handler for try viewport resized event.
 

Parameters

callback

Type: Function
The event handler.
unsubscribe

Type: Boolean - May be null
(Optional) True to unsubscribe.