What is the difference between the BarcodeReader class and the BarcodeScanner class? Can they be used interchangeably?
NOTE: - This is for version 9 or lower of barcode reader sdk
No, as each offers a different functionality than the other. The BarcodeReader
class is used to decode static images (via one of the decode* methods) and does not have the ability to open the camera stream and decode barcodes directly from the video stream.
The BarcodeScanner
class on the other hand has the ability to decode barcodes directly from a video input, but it can also capture a still image using the camera when singleFrameMode
is toggled.