BarcodeManager

EMDK For Android 5.0

This is the primary object to access the barcode scanning feature.

Public Methods

getSupportedDevicesInfo

public List getSupportedDevicesInfo()

Returns list of supported scanner devices information.

Returns:

java.util.List - Returns list of supported scanner devices information.

getDevice

public Scanner getDevice(ScannerInfo scannerInfo)

This method returns the scanner object if the scanner info specified is valid and scanner info object can obtain from the BarcoderManager.getSupportedDevices(). The scanner object created will be singleton object for a specific scanner.

Parameters:

scannerInfo

Returns:

com.symbol.emdk.barcode.Scanner - Returns the scanner object if scanner friendly name is valid. Otherwise null is returned.

getDevice

public Scanner getDevice(BarcodeManager.DeviceIdentifier deviceIdentifier)

Parameters:

deviceIdentifier - The device identifier specifies which scanner the application wants.

Returns:

com.symbol.emdk.barcode.Scanner

addConnectionListener

public void addConnectionListener(BarcodeManager.ScannerConnectionListener connectionListener)

Add ScannerConnectionListener to receive scanner connection changes via callback.

Parameters:

connectionListener

Returns:

void

removeConnectionListener

public void removeConnectionListener(BarcodeManager.ScannerConnectionListener connectionListener)

Remove ScannerConnectionListener to receive scanner connection changes via callback.

Parameters:

connectionListener

Returns:

void