Packagecom.distriqt.extension.jobscheduler
Classpublic final class JobScheduler
InheritanceJobScheduler Inheritance flash.events.EventDispatcher

This class represents the JobScheduler extension.



Public Properties
 PropertyDefined By
  implementation : String
[read-only] The implementation currently in use.
JobScheduler
  instance : JobScheduler
[static] [read-only] The singleton instance of the JobScheduler class.
JobScheduler
  isSupported : Boolean
[static] [read-only] Whether the current device supports the extensions functionality
JobScheduler
  nativeVersion : String
[read-only] The native version string of the native extension.
JobScheduler
  version : String
[read-only] The version of this extension.
JobScheduler
Public Methods
 MethodDefined By
  
Constructor You should not call this directly, but instead use the singleton access
JobScheduler
  
Cancel any previously scheduled application terminations.
JobScheduler
  
dispose():void
Disposes the extension and releases any allocated resources.
JobScheduler
  
init(key:String):void
[static] Initialises the extension class for use with the provided key.
JobScheduler
  
scheduleTermination(delay:int):Boolean
Schedule a job to terminate the application in the specified delay.
JobScheduler
Public Constants
 ConstantDefined By
  EXT_CONTEXT_ID : String = com.distriqt.JobScheduler
[static]
JobScheduler
  VERSION : String = 1.1.0
[static]
JobScheduler
Property Detail
implementationproperty
implementation:String  [read-only]

The implementation currently in use. This should be one of the following depending on the platform in use and the functionality supported by this extension:


Implementation
    public function get implementation():String
instanceproperty 
instance:JobScheduler  [read-only]

The singleton instance of the JobScheduler class.


Implementation
    public static function get instance():JobScheduler

Throws
Error — If there was a problem creating or accessing the extension, or if the key is invalid
isSupportedproperty 
isSupported:Boolean  [read-only]

Whether the current device supports the extensions functionality


Implementation
    public static function get isSupported():Boolean
nativeVersionproperty 
nativeVersion:String  [read-only]

The native version string of the native extension.


Implementation
    public function get nativeVersion():String
versionproperty 
version:String  [read-only]

The version of this extension.

This should be of the format, MAJOR.MINOR.BUILD


Implementation
    public function get version():String
Constructor Detail
JobScheduler()Constructor
public function JobScheduler()

Constructor You should not call this directly, but instead use the singleton access

Method Detail
cancelTermination()method
public function cancelTermination():Boolean

Cancel any previously scheduled application terminations.

Returns
Booleantrue if successfully cancelled.
dispose()method 
public function dispose():void

Disposes the extension and releases any allocated resources. Once this function has been called, a call to init is neccesary again before any of the extensions functionality will work.

init()method 
public static function init(key:String):void

Initialises the extension class for use with the provided key.

Parameters

key:String


Throws
Error — If there was a problem creating or accessing the extension, or if the key is invalid
scheduleTermination()method 
public function scheduleTermination(delay:int):Boolean

Schedule a job to terminate the application in the specified delay.

Parameters

delay:int — Delay in milliseconds until the application will be terminated

Returns
Booleantrue if successfully scheduled
Constant Detail
EXT_CONTEXT_IDConstant
public static const EXT_CONTEXT_ID:String = com.distriqt.JobScheduler

VERSIONConstant 
public static const VERSION:String = 1.1.0