public class DetectReader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
keepDetecting
Indicates whether to keep detecting the reader.
|
| Constructor and Description |
|---|
DetectReader(Context context)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IDetectReaderEventListener listener)
Add the listener for detecting the reader.
|
void |
clearListener()
This method removes all listeners for detection events.
|
void |
destroy()
Destructor
Destroys the event manager when the DetectReader object is no longer needed.
|
void |
removeListener(IDetectReaderEventListener listener)
Remove the listener for detecting the reader.
|
void |
startDetect()
This method starts the process of detecting a reader device.
|
void |
stopDetect()
This method stops the process of detecting a reader device.
|
public volatile boolean keepDetecting
public DetectReader(Context context)
context - The contextpublic void destroy()
public void startDetect()
public void stopDetect()
public void addListener(IDetectReaderEventListener listener)
listener - The listenerpublic void removeListener(IDetectReaderEventListener listener)
listener - The listenerpublic void clearListener()