BarcodeScanner is used as a library within a project, there are four classes available for use:

Search by sku.repositoryId is supported, so the BarcodeScanner simply returns the scanned barcode and lets the main app handle the search/rendering of the parsed result.

ATGOverlayView Interface
// Values: OneD, TwoD, DataMatrix
- enum BarcodeScannerMode
// Parameter pModes is NOT mutually exclusive. That is, passed in values can be OR'd together.
- (id)initWithModes:(BarcodeScannerMode)pModes;
ATGBarcodeScannerViewController Interface
(id)initWithDelegate:(id<ZXingDelegate>)delegate modes:(BarcodeScannerMode)pModes;
ATGBarcodeScannerHandler Interface
// Handler is a singleton value. However, the delegate can be updated/changed by invoking this method with the desired callback listener.
+ (ATGBarcodeScannerHandler *)initWithDelegate:(id<ATGBarcodeScannerHandlerDelegate>)pDelegate;
// Launches the scanner screen that handles the scanning/parsing of barcodes.
// Method invoker is responsible for presenting the returned view controller.
- (ATGBarcodeScannerViewController *)performBarcodeScan;
ATGBarcodeScannerHandlerDelegate Interface

The callback handler is responsible for dealing with the passed in view controller, including dismissing it.

- (void)didSuccessfullyParseScan:(ParsedResult *)pParsedResult withController:(UIViewController *)pViewController;
- (void)didCancelScanRequest:(UIViewController *)scannerViewController;

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices