public class BarcodeLaserSdk
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
KEY_LASER
Constant to define the keycode of the side button to trigger the laser
|
Modifier and Type | Method and Description |
---|---|
void |
disable()
Releases scanner
|
void |
enable()
Requests access to scanner
|
static BarcodeLaserSdk |
getInstance(android.content.Context context) |
void |
releaseCamera()
Release the camera so that other photo applications can work
|
void |
setCurrentListener(BarcodeResultInterface barcodeResultInterface) |
void |
start()
Turn on the laser to allow scanning.
|
void |
stop()
Turn off the laser.
|
public static final int KEY_LASER
public static BarcodeLaserSdk getInstance(android.content.Context context)
context
- of activitypublic void setCurrentListener(BarcodeResultInterface barcodeResultInterface)
barcodeResultInterface
- that will allow to retrieve events and the scanned results.
This function set current barcodeResultInterfacepublic void enable()
public void disable()
public void releaseCamera()
public void start()
public void stop()