public class ReaderManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
READER_KEY |
static java.lang.String |
STATE_CHANGED_NOTIFICATION |
Modifier and Type | Method and Description |
---|---|
boolean |
allowMultipleTransports() |
void |
clearPersistedData()
Clears the ReaderManager's persisted data
Such as the mapping between a Reader and its Bluetooth and USB transports
|
static void |
create(android.content.Context context)
Create the shared instance of the ReaderManager
Does nothing if instance already exists
|
boolean |
didCauseOnPause()
Determines if the ReaderManager is the cause of the lifecycle Pause (typically, a USB device attached since last suspended)
|
ObservableReaderList |
getReaderList() |
void |
initialiseList()
Enumerates available readers raising events for each Reader added
|
void |
onPause() |
void |
onResume() |
void |
setAllowMultipleTransports(boolean allowMultipleConnections) |
void |
setWillAutoConnectUsbReaders(boolean willAutoConnect)
Set to true to allow the ReaderManager to automatically connect to any USB Reader connections
|
static ReaderManager |
sharedInstance() |
void |
testFillPersistedData() |
void |
updateList() |
boolean |
willAutoConnectUsbReaders() |
public static final java.lang.String STATE_CHANGED_NOTIFICATION
public static final java.lang.String READER_KEY
public boolean willAutoConnectUsbReaders()
public void setWillAutoConnectUsbReaders(boolean willAutoConnect)
public static void create(android.content.Context context)
context
- the ApplicationContext for the ReaderManagerpublic static ReaderManager sharedInstance()
public boolean allowMultipleTransports()
public void setAllowMultipleTransports(boolean allowMultipleConnections)
public void clearPersistedData()
public ObservableReaderList getReaderList()
public void initialiseList()
public void onPause()
public void onResume()
public boolean didCauseOnPause()
public void updateList()
public void testFillPersistedData()