"memoryPressure" fires when the system's memory pressure level changes (see memoryPressure()). The listener gets the new level.
"interfaceStyle" fires when macOS switches between its light and dark appearance (see interfaceStyle()), including automatic switches when the appearance is set to Auto. The listener gets the new style.
Register a listener for host events.
"memoryPressure"fires when the system's memory pressure level changes (seememoryPressure()). The listener gets the new level."interfaceStyle"fires when macOS switches between its light and dark appearance (seeinterfaceStyle()), including automatic switches when the appearance is set to Auto. The listener gets the new style.