public class Readers
extends BroadcastReceiver
| Modifier and Type | Class and Description |
|---|---|
static interface |
Readers.RFIDReaderEventHandler
Interface to be implemented by fragments to be notified when a new device is discovered via bluetooth
|
| Modifier and Type | Field and Description |
|---|---|
static RFIDLogger |
LOGGER |
protected static Context |
m_scontext |
protected static ENUM_TRANSPORT |
m_senum_transport |
protected static java.lang.String |
mScannerStatus |
protected static boolean |
mScannerStatusReceived |
protected static java.lang.Object |
syncObject |
| Constructor and Description |
|---|
Readers()
Readers constructor
|
Readers(Context context,
ENUM_TRANSPORT enum_transport) |
| Modifier and Type | Method and Description |
|---|---|
static void |
attach(Readers.RFIDReaderEventHandler rfidReaderEventHandler)
add eventhandler to receive reader pair/unpair notifications
|
static void |
deattach(Readers.RFIDReaderEventHandler rfidReaderEventHandler)
remove eventhandler to receive reader pair/unpair notifications
|
void |
Dispose()
Disposes the Readers class
|
java.util.ArrayList<ReaderDevice> |
GetAvailableRFIDReaderList()
Gives list of paired rfid readers with current device
|
void |
onReceive(Context context,
Intent intent) |
void |
setTransport(ENUM_TRANSPORT enum_transport) |
protected static Context m_scontext
protected static ENUM_TRANSPORT m_senum_transport
protected static java.lang.String mScannerStatus
protected static boolean mScannerStatusReceived
protected static final java.lang.Object syncObject
public static final RFIDLogger LOGGER
public Readers()
public Readers(Context context,
ENUM_TRANSPORT enum_transport)
public void setTransport(ENUM_TRANSPORT enum_transport)
public static void attach(Readers.RFIDReaderEventHandler rfidReaderEventHandler)
rfidReaderEventHandler - public static void deattach(Readers.RFIDReaderEventHandler rfidReaderEventHandler)
rfidReaderEventHandler - public void Dispose()
public java.util.ArrayList<ReaderDevice> GetAvailableRFIDReaderList() throws InvalidUsageException
InvalidUsageExceptionpublic void onReceive(Context context,
Intent intent)