Expand | ||
---|---|---|
| ||
...
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 thereason
field value ismessage
, this field returns the contents of the message.
...