Event Constants

Event.back

This event is sent through the active commander chain when a back gesture is recognized (or the back key is pressed on the desktop).

Custom Event Fields

  • originalEvent: The original click Event object which caused this event to be dispatched. Useful for disambiguating changes if the list items contain multiple input fields.

Event.command

A command event is generated when a menu item is selected.

Event.down

This event is fired when a down gesture is recognized

Event.dragEnd

An up action following a Event.dragStart event generates a dragEnd event.

The passed event is an instance of Event.DragEvent.

Event.dragging

Movement following the Event.dragStart event generates dragging events.

The passed event is an instance of Event.DragEvent.

Event.dragStart

A down action followed by movement outside of a system-defined radius generates an Event.dragStart event. Usually, the Event.dragStart event is handled by the scroller. However, any element that chooses to handle this event gets all subsequent drag events.

The passed event is an instance of Event.DragEvent.

Event.flick

Movement greater than a system-defined rate, between down and up events, generates a flick event.

Event.forward

This event is fired when a forward gesture is recognized.

Event.lowMemory

Triggered by the system when memory conditions change. data has additional event info, including state, a string indicating the new memory state ("low", "critical", "normal").

Event.relaunch

An event that is generated whenever a launch event is sent to the app. This occurs whenever an app is opened by the user or when the app is opened programmatically through the application manager service.

The passed event is an instance of Event.RelaunchEvent.

Event.screenRotate

Fires when the device is turned, unlike an orientationchange event which fires whenever the device moves at all.

The passed event is an instance of Event.ScreenRotateEvent.

Event.up

This event is fired when an up gesture is recognized.

Event.windowActivate

A windowActivate event is generated when a window becomes active and is potentially receiving the user's attention. For card windows, this is when the window is maximized and fills the screen.

Event.windowDeactivate

A windowDeactivate event is generated when a window is no longer active and potentially receiving the user's attention. For card windows, this is when the window is minimized.