com.honeywell.sdk.counterreader
Class CounterReader

java.lang.Object
  extended by 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() {


Field Summary
static int SLOT_TYPE_OEM
           
static int SLOT_TYPE_SPT
           
static int SLOT_TYPE_USER
           
 
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
 

Field Detail

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
Constructor Detail

CounterReader

public CounterReader(Context context,
                     Handler handler)
Constructor for CounterReader.

Method Detail

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