onAppEvents([callback], [remove])
Class: SwingUI.
Description:
Registers, gets, or unregisters event handler callbacks for application events on macOS.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
function |
A callback function that receives an AppEvent object. Set to |
|
|
|
boolean |
false |
Remove the callback from this event. |
Returns:
If called without parameters, an array of registered callbacks is returned; otherwise this instance of SwingUI class is returned.
Type: SwingUI | Array.<function()>
