Neutralino.app namespace contains methods related to the current application instance.
Terminates the running application.
exitCodeNumber: Process's exit code. The default value is always
Kills the application process. If the application becomes unresponsive,
you can use this to terminate the process instantly. It is recommended
to use the
exit() method to close your application properly.
Restarts the current application instance.
argsString: Additional command-line arguments that need to be passed to the new application instance's process.
Returns the current application configuration as a JSON object.
The current application configuration. Sometimes, this configuration object is not identical to your configuration file
because the framework updates the configuration during several situations such as config overriding via CLI arguments
0 as the port.
Dispatches a new event to all app instances.
eventNameString: Name of the event.
dataObject (optional): Additional data for the event.