|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jcdecaux.jcdroid.fwk.api.hardware.BarcodeReaderManager
public class BarcodeReaderManager
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 |
---|
public static final int STATE_DISCONNECTED
STATE_INITIALIZED
.
public static final int STATE_INITIALIZED
STATE_ENABLED
to be able to decode data or STATE_DISABLED
.
public static final int STATE_ENABLED
STATE_DISABLED
.
public static final int STATE_DISABLED
STATE_ENABLED
.
Constructor Detail |
---|
public BarcodeReaderManager(android.content.Context context, com.jcdecaux.jcdroid.fwk.api.hardware.IBarcodeReaderService service)
Method Detail |
---|
public int getBarcodeReaderState()
BarcodeReaderManager
STATE_*
constants.
This method requires the caller to hold the permission
Manifest.permission#BARCODE_READER
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |