CanvasService.subscribe Method

Subscribe or unsubscribe an event handler for an event.
 

Parameters

eventName

Type: String
Event name.
callback

Type: Function
Event Handler.
unsubscribe

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