Controller

If your Visualforce page contains a canvas app, you can use methods in the Controller object to publish an event that the canvas app subscribes to. It contains these methods:

MethodSignatureDescription
publishpublish(String name, Object payload [, String[] target])Used to publish an event that the canvas app subscribes to. The target parameter is optional. It can contain a single canvas app name or an array of canvas app names.
resizeresize(String height, String width, String target)Used by a Visualforce page to resize a canvas app iFrame.
subscribesubscribe(Subscriber event)Used by a Visualforce page to subscribe to events that the canvas app might publish.
unsubscribeunsubscribe(Unsubscriber event)Used by a Visualforce page to unsubscribe to parent events that the canvas app might publish.

See Also