Scanner is a native extension to create an interface using the camera to scan for codes such as QR Codes, bar codes and other such encoded information. It supports many popular symbologies (types of bar codes) including EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR Code. However the particular support will be determined by the underlying algorithm in use.

The extension uses the built in default camera for scanning. It works across iOS and Android with the same code.

Sample

Scanner.init( DEV_KEY );

if (Scanner.isSupported) {
    Scanner.service.addEventListener( ScannerEvent.CODE_FOUND, scanner_codeFoundHandler, false, 0, true );

    var options:ScannerOptions = new ScannerOptions();
    options.symbologies = [ Symbology.QRCODE ];
    options.singleResult = true;

    Scanner.service.startScan( options );
}

private function scanner_codeFoundHandler( event:ScannerEvent ):void {
    trace( "code found: " + event.data );
}
Air Native Extension, Android, iOS. URL.