EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Spezifikationen Seite 187

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 304
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 186
CHAPTER 5: Interapplication Communication with Scripts BridgeTalk message object 187
BridgeTalk message object callbacks
NOTE: The message callbacks are optional, and are not implemented by all message-enabled applications.
type
String The message type, which indicates what type of data the body contains.
Read/write. Default is
ExtendScript.
You can define a type for script-defined data. If you do so, the target application
must have a static
BridgeTalk onReceive method that checks for and processes
that type.
onError
Function A callback function that the target application invokes to return an error
response to the sender. It can send JavaScript run-time errors or exceptions,
or C++ exceptions.
To define error-response behavior, set this to a function definition in the
following form:
bridgeTalkObj.onError = function( errorMsgObject ) {
// error handler defined here
};
The body property of the received message object contains the error
message, and the
headers property contains the error code in its
Error-Code property. See Messaging error codes” on page 190.
The function returns
undefined.
onReceived
Function A callback function that the target application invokes to confirm that the
message was received. (Note that this is different from the static onReceive
method of the
BridgeTalk class that handles unsolicited messages.)
To define a response to receipt notification, set this to a function definition
in the following form:
bridgeTalkObj.onReceived = function( origMsgObject ) {
// handler defined here
};
The target passes back the original message object, with the body property
set to the empty string.
The function returns
undefined.
Seitenansicht 186
1 2 ... 182 183 184 185 186 187 188 189 190 191 192 ... 303 304

Kommentare zu diesen Handbüchern

Keine Kommentare