public class Readers
extends android.content.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 |
---|---|
protected static android.content.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(android.content.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(android.content.Context context,
android.content.Intent intent) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
protected static android.content.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 Readers()
public Readers(android.content.Context context, 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
InvalidUsageException
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver