ScannerConfiguration

public class ScannerConfiguration

Fields

ATTRIBUTE_ACTIVATE_LIGHT

public static final String ATTRIBUTE_ACTIVATE_LIGHT

Use this attribute to enable/disable a light by setting it to a Boolean value.

ATTRIBUTE_BARCODE

public static final String ATTRIBUTE_BARCODE

Returns the barcode data as a String for a STATUS_BARCODE_DETECTED event.

ATTRIBUTE_BARCODE_FORMAT

public static final String ATTRIBUTE_BARCODE_FORMAT

Returns the detected barcode format as an Integer for a STATUS_BARCODE_DETECTED event.

ATTRIBUTE_CONTINUOUS_SCAN

public static final String ATTRIBUTE_CONTINUOUS_SCAN

Use this attribute to enable/disable continuous scanning by setting it to a Boolean value

ATTRIBUTE_DISPLAY_FEED_PARENT

public static final String ATTRIBUTE_DISPLAY_FEED_PARENT

Use this attribute to pass an Activity or Fragment which will contain the view from the scanner.

ATTRIBUTE_PLAY_SOUND

public static final String ATTRIBUTE_PLAY_SOUND

Use this attribute to enable/disable playing a sound when a barcode is scanned by setting it to a Boolean value.

ATTRIBUTE_SCANNING_FORMATS

public static final String ATTRIBUTE_SCANNING_FORMATS

Use this attribute to enable scanning of specific formats. Formats are declared under ScannerBarcodeFormat. Attribute value is an integer array. If not set all product and industrial barcodes will be enabled by default.

ATTRIBUTE_SCAN_AREA_LIMIT

public static final String ATTRIBUTE_SCAN_AREA_LIMIT

Use this attribute to pass a Rect object to limit the scanning area to a specific region.

ATTRIBUTE_SET_DIRECTION

public static final String ATTRIBUTE_SET_DIRECTION

Use this attribute to set the direction of the scanner, and receive the direction of the scanner for a STATUS_BARCODE_DETECTED event. When using for the camera, this is an Integer with the following values: 1 - Rear facing, no option to change. 2 - Rear facing, but the user can change direction. 3 - Forward facing, no option to change. 4 - Forward facing, but the user can change direction.

ATTRIBUTE_VIEW_GRAVITY

public static final String ATTRIBUTE_VIEW_GRAVITY

The capability to set viewfinder’s gravity.

CAPABILITY_ACTIVATE_LIGHT

public static final String CAPABILITY_ACTIVATE_LIGHT

The capability to turn on a light for the scanning area. Generally only applicable to the built-in camera.

CAPABILITY_CONTINUOUS_SCANNING

public static final String CAPABILITY_CONTINUOUS_SCANNING

The capability to continuously scan for barcodes and fire events for each barcode detected, or only scan one barcode at a time.

CAPABILITY_DISPLAY_SCAN_FEED

public static final String CAPABILITY_DISPLAY_SCAN_FEED

The capability to display in Android the view of the scanner. Generally only applicable to the built-in camera.

CAPABILITY_LIMIT_SCAN_AREA

public static final String CAPABILITY_LIMIT_SCAN_AREA

The capability to reduce the scan area to a smaller subset of valid ranges. Generally only applicable to the built-in camera.

CAPABILITY_PLAY_SCAN_SOUND

public static final String CAPABILITY_PLAY_SCAN_SOUND

The capability to play a sound or chime when a barcode is scanned.

CAPABILITY_SET_SCAN_DIRECTION

public static final String CAPABILITY_SET_SCAN_DIRECTION

The capability to set the direction of the scanner. Generally only applicable to the built-in camera to switch between rear and forward facing.

PERIPHERAL_TYPE

public static final String PERIPHERAL_TYPE

The peripheral type used in Peripheral.getPeripheralType() getType()} and

STATUS_BARCODE_DETECTED

public static final String STATUS_BARCODE_DETECTED

The scanner has found a barcode, and will include the relevant mAttributes. This status is never returned from getStatus, but can only be received by a listener.

STATUS_READY

public static final String STATUS_READY

The peripheral is connected and ready for use.

STATUS_SCANNING

public static final String STATUS_SCANNING

The scanner is looking for barcodes. As an example, in the case of the built-in camera, the camera is actively scanning the view area.

STATUS_SUSPENDED

public static final String STATUS_SUSPENDED

An external scanner that is waiting to be activated, but is connected. This only applies to scanners that have a suspend/sleep mode, and is specific to the scanner hardware.