...
Expand | ||
---|---|---|
| ||
If an roMessagePort is attached to an roElectron object, it will receive roElectronEvent objects when something happens to the parent roElectron instance.
ifUserData
SetUserData(user_data As Object)
Sets the user data that will be returned when events are raised.
GetUserData() As Object
Returns the user data that has previously been set via SetUserData()
. It will return Invalid
if no data has been set.
ifElectronEvent
GetData() As roAssociativeArray
Returns the event data as an associative array with the following key/value pairs:
[reason
string] reason: 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.
[number] exitexit_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] message: If If thereason
field value ismessage
, this field returns the contents of the message.
...