public abstract class DecodeStateCallback
extends java.lang.Object
| Constructor and Description |
|---|
DecodeStateCallback() |
DecodeStateCallback(android.os.Handler handler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deliverSelfNotification() |
void |
dispatchChangedState(int state) |
device.common.IDecodeStateCallback |
getDecodeStateCallback() |
void |
onChangedState(int state)
Called when state of scanner is chanaged.
|
device.common.IDecodeStateCallback |
releaseDecodeStateCallback() |
void |
setHandler(android.os.Handler handler) |
public DecodeStateCallback()
public DecodeStateCallback(android.os.Handler handler)
public void setHandler(android.os.Handler handler)
public device.common.IDecodeStateCallback getDecodeStateCallback()
public device.common.IDecodeStateCallback releaseDecodeStateCallback()
public boolean deliverSelfNotification()
public void onChangedState(int state)
state - changed state of scanner
public class ScanConst {
public static final int STATE_INIT = 0;
public static final int STATE_TURNING_ON = 1;
public static final int STATE_ON = 2;
public static final int STATE_TURNING_OFF = 3;
public static final int STATE_OFF = 4;
public static final int STATE_LOCK_BY_CAMERA = 5;
public static final int STATE_UNLOCK_BY_CAMERA = 6;
public static final int STATE_CAMERA_ON = 7;
public static final int STATE_CAMERA_OFF = 8;
public static final int STATE_SUSPENDING = 9;
public static final int STATE_SUSPEND_DONE = 10;
public static final int STATE_RESUMING = 11;
public static final int STATE_RESUME_DONE = 12;
}
public final void dispatchChangedState(int state)