com.honeywell.sdk.counterreader
Class CounterReader
java.lang.Object
com.honeywell.sdk.counterreader.CounterReader
public class CounterReader
- extends java.lang.Object
This class provide a easy way to read counter
Sample code:
1 mReader = new CounterReader(this,mHandler); // on the start of app
2 private Handler mHandler = new Handler() {
Constructor Summary |
CounterReader(Context context,
Handler handler)
Constructor for CounterReader. |
Method Summary |
int |
readCounter(int index)
Interface to try to get counter value by counter index |
void |
refreshCounters()
Interface to try to get latest Counter data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SLOT_TYPE_OEM
public static int SLOT_TYPE_OEM
SLOT_TYPE_SPT
public static int SLOT_TYPE_SPT
SLOT_TYPE_USER
public static int SLOT_TYPE_USER
CounterReader
public CounterReader(Context context,
Handler handler)
- Constructor for CounterReader.
refreshCounters
public void refreshCounters()
- Interface to try to get latest Counter data. Client can use handler to receive result
readCounter
public int readCounter(int index)
- Interface to try to get counter value by counter index