Events
Phoenix supports the following (case sensitive) events. Use these to construct an Event.
Phoenix
didLaunchtriggered once when Phoenix has launched and the context is readywillTerminatetriggered when Phoenix will terminate, use this event to perform any tasks before the application terminates
Device
3.0.0+
deviceWillSleeptriggered when the device will sleepdeviceDidWaketriggered when the device did wake
Screen
screensDidChangetriggered when screens (i.e. displays) are added, removed, or dynamically reconfigured
Space
spaceDidChangetriggered when the active space has changed
Mouse
All of the following mouse events receive the corresponding Point object as the first argument for the callback function. This object is also enhanced with a modifiers array which contains the key modifiers pressed when the mouse event is triggered.
mouseDidMovetriggered when the mouse has movedmouseDidLeftClicktriggered when the mouse did left clickmouseDidRightClicktriggered when the mouse did right clickmouseDidLeftDragtriggered when the mouse did left dragmouseDidRightDragtriggered when the mouse did right drag
4.0.0+
mouseDidOtherClicktriggered when the mouse did tertiary clickmouseDidOtherDragtriggered when the mouse did tertiary drag
App
All of the following app events receive the corresponding App instance as the first argument for the callback function.
appDidLaunchtriggered when an app has launchedappDidTerminatetriggered when an app has terminatedappDidActivatetriggered when an app has activatedappDidHidetriggered when an app becomes hiddenappDidShowtriggered when an app is shown (becomes unhidden)
Window
All of the following window events receive the corresponding Window instance as the first argument for the callback function.
windowDidOpentriggered when a window has openedwindowDidClosetriggered when a window has closedwindowDidFocustriggered when a window was focused within an appwindowDidMovetriggered when a window has movedwindowDidResizetriggered when a window has resizedwindowDidMinimiseorwindowDidMinimizetriggered when a window has minimisedwindowDidUnminimiseorwindowDidUnminimizetriggered when a window has unminimised