| Package | qnx.system |
| Class | public class QNXSystem |
| Inheritance | QNXSystem flash.events.EventDispatcher |
QNXSystem class provides access to system-wide, system-specific functionality including
power mode, system states, and system resources.
See also
| Property | Defined By | ||
|---|---|---|---|
| inactivePowerMode : String
Gets or sets the power mode setting to switch to when the application becomes
inactive. | QNXSystem | ||
| powerMode : String
Gets or sets the current power mode setting. | QNXSystem | ||
| system : QNXSystem [static] [read-only]
Returns the singleton QNXSystem object. | QNXSystem | ||
| systemState : String [read-only]
Returns a String representing the current system state. | QNXSystem | ||
| transitionTime : int
The duration (in milliseconds) of inactivity that must occur before
the player switches out of normal power mode. | QNXSystem | ||
| Method | Defined By | ||
|---|---|---|---|
Use the static system property to return a QNXSystem instance. | QNXSystem | ||
cancelAlarm(id:int):void
Cancels an alarm set by setAlarm(). | QNXSystem | ||
getResources():Object
Show the current resource requests. | QNXSystem | ||
releaseResource(resource:String):void
Indicates that a resource is no longer required. | QNXSystem | ||
requestResource(resource:String):void
Indicates that a resource is required. | QNXSystem | ||
runFrameCycle():void
Run a single AIR frame cycle to allow timers from normal
AIR timers and onEnterFrame handlers to be called. | QNXSystem | ||
setAlarm(duration:int, repeat:Boolean = false):int
Sets an alarm to cause activity during QNXSystemPowerMode.STANDBY power mode. | QNXSystem | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the system goes into the active state. | QNXSystem | |||
| Dispatched when an alarm set by setAlarm expires. | QNXSystem | |||
| QNXSystem | ||||
| Dispatched when the system goes into the standby state. | QNXSystem | |||
| inactivePowerMode | property |
inactivePowerMode:StringGets or sets the power mode setting to switch to when the application becomes inactive.
public function get inactivePowerMode():String public function set inactivePowerMode(value:String):voidSee also
| powerMode | property |
powerMode:StringGets or sets the current power mode setting.
One of:
QNXSystemPowerMode.NORMALQNXSystemPowerMode.STANDBYQNXSystemPowerMode.THROTTLED public function get powerMode():String public function set powerMode(value:String):voidSee also
| system | property |
system:QNXSystem [read-only]
Returns the singleton QNXSystem object.
public static function get system():QNXSystem| systemState | property |
systemState:String [read-only] Returns a String representing the current system state.
One of:
QNXSystemSystemState.ACTIVEQNXSystemSystemState.INACTIVEQNXSystemSystemState.STANDBY public function get systemState():StringSee also
| transitionTime | property |
transitionTime:intThe duration (in milliseconds) of inactivity that must occur before the player switches out of normal power mode.
For example, if
the power mode is set to QNXSystemPowerMode.STANDBY, the mode will remain in
normal power mode until no window updates occur for this period
of time.
public function get transitionTime():int public function set transitionTime(value:int):void| QNXSystem | () | Constructor |
public function QNXSystem()
Use the static system property to return a QNXSystem instance.
See also
| cancelAlarm | () | method |
public function cancelAlarm(id:int):void
Cancels an alarm set by setAlarm().
Parameters
id:int — The ID of teh alarm to cancel
|
| getResources | () | method |
public function getResources():ObjectShow the current resource requests.
ReturnsObject — An object with a property for each requested resource.
|
See also
| releaseResource | () | method |
public function releaseResource(resource:String):void
Indicates that a resource is no longer required. Resource names that are known by the
runtime are provided by the class QNXSystemResource.
Parameters
resource:String — The name of the resource to release.
|
See also
| requestResource | () | method |
public function requestResource(resource:String):void
Indicates that a resource is required. Resource names that are known by the
runtime are provided by the class QNXSystemResource.
Parameters
resource:String — The name of the resource.
|
See also
| runFrameCycle | () | method |
public function runFrameCycle():void
Run a single AIR frame cycle to allow timers from normal
AIR timers and onEnterFrame handlers to be called. This is
only useful in standby power mode (QNXSystemPowerMode.STANDBY).
| setAlarm | () | method |
public function setAlarm(duration:int, repeat:Boolean = false):int
Sets an alarm to cause activity during QNXSystemPowerMode.STANDBY power mode.
Parameters
duration:int — Duration of the alarm (in milliseconds).
| |
repeat:Boolean (default = false) — If true, the alarm is periodic. Otherwise the alarm occurs only once.
|
int — The alarm ID. You can use the ID to cancel the alarm, by passing it into the cancelAlarm()
function.
|
| active | Event |
qnx.events.QNXSystemEventqnx.events.QNXSystemEvent.ACTIVEDispatched when the system goes into the active state.
| alarm | Event |
qnx.events.QNXSystemEventqnx.events.QNXSystemEvent.ALARMDispatched when an alarm set by
setAlarm expires.
| inactive | Event |
qnx.events.QNXSystemEventqnx.events.QNXSystemEvent.INACTIVE
| standby | Event |
qnx.events.QNXSystemEventqnx.events.QNXSystemEvent.STANDBYDispatched when the system goes into the standby state.