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.
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.
The manager gives access to the same methods as the STCameraManager.
The results obtained with the StLimitedCameraManager are:
|Report Type||Scan State||Description|
|COMPLETED_RESULT||OK||A code belonging to ScanTrust has been detected (processing is paused)|
|NOT_PROPRIETARY||A code has been detected, but it doesn’t belong to ScanTrust or is undetermined (processing is paused)|
|IN_PROGRESS||UNREADABLE||No 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.