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:
BlackBerry 10 Version:   10.0.0

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
  
clone():Event
[override] Creates a copy of the DisplayEvent object and sets the value of each property to match that of the original.
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.

Method Detail

clone()


override public function clone():Event

Creates a copy of the DisplayEvent object and sets the value of each property to match that of the original.

Returns

Event — A new DisplayEvent object with property values that match those of the original.

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.





comments powered by Disqus