onAppEvents([callback], [remove])

Class: SwingUI.

Description:

Registers, gets, or unregisters event handler callbacks for application events on macOS.

Parameters:

Name Type Default Description

[callback]

function

A callback function that receives an AppEvent object. Set to null to unregister all callbacks for this event. Omit to get an array of callbacks for this event.

[remove]

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()>

Also See: