Packagecom.distriqt.extension.scanner.events
Classpublic class ScannerEvent
InheritanceScannerEvent Inheritance flash.events.Event

This class represents an event from the scanning process.



Public Properties
 PropertyDefined By
  result : ScanResult
The scan result associated with this event.
ScannerEvent
Public Methods
 MethodDefined By
  
ScannerEvent(type:String, result:ScanResult = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
ScannerEvent
  
clone():Event
[override]
ScannerEvent
Public Constants
 ConstantDefined By
  CANCELLED : String = scanner:cancelled
[static] Dispatched when the user manually cancels the scan operation.
ScannerEvent
  CODE_FOUND : String = scanner:code:found
[static] Dispatched when a code was detected by the scanner.
ScannerEvent
  SCAN_START : String = scanner:start
[static] Dispatched when the scanner starts scanning for bar codes, generally directly after the start scan call occurs.
ScannerEvent
  SCAN_STOPPED : String = scanner:stopped
[static] Dispatched when the scanner stops scanning for codes.
ScannerEvent
Property Detail
resultproperty
public var result:ScanResult

The scan result associated with this event. May be null if no result is associated with this event

Constructor Detail
ScannerEvent()Constructor
public function ScannerEvent(type:String, result:ScanResult = null, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
result:ScanResult (default = null)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
CANCELLEDConstant
public static const CANCELLED:String = scanner:cancelled

Dispatched when the user manually cancels the scan operation. This should be closely followed by a SCAN_STOPPED

CODE_FOUNDConstant 
public static const CODE_FOUND:String = scanner:code:found

Dispatched when a code was detected by the scanner. The data will contain the string representation of the data encoded in the code and the symbologyType will be set to the appropriate Symbology definition.

See also

SCAN_STARTConstant 
public static const SCAN_START:String = scanner:start

Dispatched when the scanner starts scanning for bar codes, generally directly after the start scan call occurs.

SCAN_STOPPEDConstant 
public static const SCAN_STOPPED:String = scanner:stopped

Dispatched when the scanner stops scanning for codes. This can occur in several situtations: