Skip to main content

StLimitedCameraManager

The StLimitedCameraManager does the same camera and preview view setup as the STCameraManager but does not perform the image and frame processing required for the Scantrust authentication. It is limited to checking the ownership of the code based on its content.

Setup

By default It will enable the reading of 1D barcodes (UPC-A, UPC-E, EAN-8, EAN-13, Code 39, Code 93, Code 128, ITF(Interleaved Two of Five), RSS 14, RSS EXPANDED) and QR codes and it’s instantiation should be done in the same way as for the STCameraManager.

StLimitedCameraManager Handling

The manager gives access to the same methods as the STCameraManager.

Results

The results obtained with the StLimitedCameraManager are:

Report TypeScan StateDescription
COMPLETED_RESULTOKA code belonging to Scantrust has been detected (processing is paused)
NOT_PROPRIETARYA code has been detected, but it doesn’t belong to Scantrust or is undetermined (processing is paused)
IN_PROGRESSUNREADABLENo code has been detected by Zxing

Limited Camera manager provides a delegate method to know the result.

@protocol STLimitedCameraManagerDelegate <NSObject>
@optional
- (void)cameraManager:(STLimitedCameraManager *)cameraManager didCompleteScanWithScanResult:(STScanResult *)scanResult;
@end

STScanResult class gives the scanned code data and STScanState.