com.jcdecaux.jcdroid.fwk.api.hardware
Class BarcodeReaderManager

java.lang.Object
  extended by com.jcdecaux.jcdroid.fwk.api.hardware.BarcodeReaderManager

public class BarcodeReaderManager
extends java.lang.Object

Class that operates with the barcode reader on the device. To obtain an instance of the system barcodereader, call Context.getSystemService(java.lang.String) with JCDroidService.BARCODE_READER_SERVICE as argument.


Field Summary
static int STATE_DISABLED
          The barcode reader is disabled, unable to decode any data.
static int STATE_DISCONNECTED
          The barcode reader is disconnected.
static int STATE_ENABLED
          The barcode reader is enabled and ready to decode data.
static int STATE_INITIALIZED
          The barcode reader is initialized but cannot decode data.
 
Constructor Summary
BarcodeReaderManager(android.content.Context context, com.jcdecaux.jcdroid.fwk.api.hardware.IBarcodeReaderService service)
           
 
Method Summary
 int getBarcodeReaderState()
          Retrieve current barcode reader state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_DISCONNECTED

public static final int STATE_DISCONNECTED
The barcode reader is disconnected. It cannot be enabled/disabled. The only next state is STATE_INITIALIZED.

See Also:
Constant Field Values

STATE_INITIALIZED

public static final int STATE_INITIALIZED
The barcode reader is initialized but cannot decode data. Next possible states: STATE_ENABLED to be able to decode data or STATE_DISABLED.

See Also:
Constant Field Values

STATE_ENABLED

public static final int STATE_ENABLED
The barcode reader is enabled and ready to decode data. Next possible state: STATE_DISABLED.

See Also:
Constant Field Values

STATE_DISABLED

public static final int STATE_DISABLED
The barcode reader is disabled, unable to decode any data. Next possible state: STATE_ENABLED.

See Also:
Constant Field Values
Constructor Detail

BarcodeReaderManager

public BarcodeReaderManager(android.content.Context context,
                            com.jcdecaux.jcdroid.fwk.api.hardware.IBarcodeReaderService service)
Method Detail

getBarcodeReaderState

public int getBarcodeReaderState()
Retrieve current barcode reader state. Use BarcodeReaderManager STATE_* constants. This method requires the caller to hold the permission Manifest.permission#BARCODE_READER

Returns: