BarcodeScanner

public class BarcodeScanner

This class provides methods for interacting with the Clover barcode scanning app available on Clover devices. The Clover barcode scanning app uses the cameras built-in to Clover devices to scan barcodes. This class does not support interfacing with external barcode scanners.

Constructors

Link copied to clipboard
public void BarcodeScanner(Context context)

Properties

Link copied to clipboard
public final static String ARG_SUCCESS
This field is not useful when working with this class, it should not be used.
Link copied to clipboard
public final static int BARCODE_SCANNER_FACING_CUSTOMER
Barcode scanner that primarily faces and is intended to be used by the customer.
Link copied to clipboard
public final static int BARCODE_SCANNER_FACING_DUAL
Barcode scanner that can face and be used by either the merchant or customer.
Link copied to clipboard
public final static int BARCODE_SCANNER_FACING_MERCHANT
Barcode scanner that primarily faces and is intended to be used by the merchant.

Functions

Link copied to clipboard
public void executeStartScan()
public void executeStartScan(Bundle extras)
Calls startScan from a background thread.
Link copied to clipboard
public void executeStopScan()
public void executeStopScan(Bundle extras)
Calls stopScan from a background thread.
Link copied to clipboard
Retrieve the builtin barcode scanning cameras that are available on this device.
Link copied to clipboard
public boolean isProcessing()
Returns true if the barcode scanner app is currently running.
Link copied to clipboard
public void startScan()
public boolean startScan(Bundle extras)
Open the barcode scanning app and begin scanning.
Link copied to clipboard
public void stopScan()
public boolean stopScan(Bundle extras)
Stop the barcode scanning app.