DisplayEvent
Properties | Methods | Constants
Package | qnx.events |
Class | public class DisplayEvent |
Inheritance | DisplayEvent ![]() |
The
DisplayEvent
class contains events that are associated with displays.
Class information: |
---|
PlayBook Tablet OS Version: 1.0.6 |
See also
Public Properties
Property | Defined By | ||
---|---|---|---|
index : int
An int representing the index of the display in the array of screens. | DisplayEvent |
Public Methods
Method | Defined By | ||
---|---|---|---|
DisplayEvent(type:String, _index:int)
Creates a DisplayEvent instance. | DisplayEvent |
Public Constants
Constant | Defined 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.