ScannerInfo

EMDK For Android 5.0

ScannerInfo provides information of the scanner device.

Example Usage:


scanneInfo.getFriendlyName();

Public Methods

isDefaultScanner

public boolean isDefaultScanner()

Returns true if it is a default scanner else false.

Returns:

boolean -

getFriendlyName

public String getFriendlyName()

Returns the friendly name of the Device.

Example Usage:


String name = scanneInfo.getFriendlyName();

Returns:

java.lang.String - Returns the friendly name

getModelNumber

public String getModelNumber()

Returns the scanner device model number. This information will be available only after the scanner is enabled. Note: The model number is supported on the Scanner Framework version 3.0.11 or later.

Example Usage:


String model = scanneInfo.getModel();

Returns:

java.lang.String - Returns the model string

getDeviceType

public DeviceType getDeviceType()

Returns the scanner device type

Example Usage:


DeviceType deviceType = scanneInfo.getDeviceType();

Returns:

com.symbol.emdk.barcode.ScannerInfo.DeviceType - Returns the DeviceType

getConnectionType

public ConnectionType getConnectionType()

Returns the scanner connection type to mobile computer Note: The connection type information is not available on Scanner Framework 1.18.P03 on TC55 REV A device.

Example Usage:


ConnectionType deviceType = scanneInfo.getConnectionType();

Returns:

com.symbol.emdk.barcode.ScannerInfo.ConnectionType - Returns the ConnectionType

getDeviceIdentifier

public DeviceIdentifier getDeviceIdentifier()

Returns the Device Identifier. Note: DeviceIdentifier.DEFAULT will not be returned for any scanner.

Example Usage:


DeviceIdentifier deviceIdentifier = scannerInfo.getDeviceIdentifier();

Returns:

com.symbol.emdk.barcode.BarcodeManager.DeviceIdentifier - Returns the DeviceIdentifier

getDecoderType

public DecoderType getDecoderType()

Returns the barcode scanning type supported by scanner. Note: The decoder type information is not available on Scanner Framework 1.18.P03 on TC55 REV A device.

Example Usage:


DecoderType decoderType = scannerInfo.getScannerInfo().getDecoderType();

Returns:

com.symbol.emdk.barcode.ScannerInfo.DecoderType - Returns the DECODER_TYPE

isConnected

public boolean isConnected()

Returns:

boolean