Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Expand
titleVersion 9 and Older Versions

...

Returns the event data as an associative array with the following key/value pairs:

  • reason string: The cause of the event, which can be one of the following:

    • process_exit: The Electron instance has exited.

    • message: The Electron instance has sent a message.

  • exit_code number The value of this field is set by the Electron application when it exits (www.electronjs.org/docs/api/app#appexitexitcode). The Electron process exit code is only defined in OS 8.2 and later OS versions. Note that the Electron script can also use these codes for its own purposes. 

  • message string: If the reason field value is message, this field returns the contents of the message.

...