onToolbarMessage Method

This method registers a callback for messages exchanged between toolbars. The callback is registered only for the toolbar that sent the message.

The following table shows the parameters for this method. The method has no return value.

Parameter

Description

callback

Method called when a message is received from other toolbars.

The following table shows a list of member attributes of the response object. The object has no return value.

Member Attribute

Description

result

The server side running status. Result values are success or error.

messagePayload

Payload from toolbar.

error

Contains error message if the result value is an error. If not, then the value is undefined. For more information about error message codes, see Error Messages.