Package | com.distriqt.extension.scanner.events |
Class | public class ScannerEvent |
Inheritance | ScannerEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
result : ScanResult
The scan result associated with this event. | ScannerEvent |
Method | Defined By | ||
---|---|---|---|
ScannerEvent(type:String, result:ScanResult = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
| ScannerEvent | ||
clone():Event [override] | ScannerEvent |
Constant | Defined 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 |
result | property |
public var result:ScanResult
The scan result associated with this event. May be null if no result is associated with this event
ScannerEvent | () | Constructor |
public function ScannerEvent(type:String, result:ScanResult = null, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
Parameterstype:String | |
result:ScanResult (default = null )
| |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
CANCELLED | Constant |
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_FOUND | Constant |
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_START | Constant |
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_STOPPED | Constant |
public static const SCAN_STOPPED:String = scanner:stopped
Dispatched when the scanner stops scanning for codes. This can occur in several situtations: