qnx.events.DisplayEvent

DisplayEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class DisplayEvent
InheritanceDisplayEvent Inheritance flash.events.Event

The DisplayEvent class contains events that are associated with displays.

Class information:
PlayBook Tablet OS Version:   1.0.6

See also

Display



Public Properties

 PropertyDefined By
  index : int
An int representing the index of the display in the array of screens.
DisplayEvent

Public Methods

 MethodDefined By
  
DisplayEvent(type:String, _index:int)
Creates a DisplayEvent instance.
DisplayEvent

Public Constants

 ConstantDefined By
  DISPLAY_ATTACHED : String = displayAttached
[static] Dispatched when a new display is attached to the system.
DisplayEvent
  DISPLAY_REMOVED : String = displayRemoved
[static] Dispatched when a new display is removed from the system.
DisplayEvent
  MODE_CHANGED : String = modeChanged
[static] Dispatched when the display mode of a display changes.
DisplayEvent

Property Detail

index


public var index:int

An int representing the index of the display in the array of screens.

Constructor Detail

DisplayEvent()


public function DisplayEvent(type:String, _index:int)

Creates a DisplayEvent instance.

Parameters

type:String — The event type. One of DISPLAY_ATTACHED, DISPLAY_REMOVED, MODE_CHANGED.
_index:int — The index of the display.

Constant Detail

DISPLAY_ATTACHED


public static const DISPLAY_ATTACHED:String = displayAttached

Dispatched when a new display is attached to the system.

DISPLAY_REMOVED


public static const DISPLAY_REMOVED:String = displayRemoved

Dispatched when a new display is removed from the system.

MODE_CHANGED


public static const MODE_CHANGED:String = modeChanged

Dispatched when the display mode of a display changes.