DCEFeedback
Method | Description |
---|---|
vibrate |
Trigger a vibration when the method is called. |
beep |
Trigger a beep when the method is called. |
vibrate
Trigger a vibration when the method is called.
static void vibrate(Context context)
Code Snippet
DCEFeedback.vibrate(MainActivity.this);
// For example, if `vibrate` is called in the TextResultCallback of DBR, the device will trigger a vibration each time when barcode result is detected.
mReader.setTextResultListener(new TextResultListener() {
@Override
public void textResultCallback(int id, ImageData imageData, TextResult[] textResults) {
...
DCEFeedback.vibrate(MainActivity.this);
}
});
beep
Trigger a beep when the method is called.
static void beep(Context context)
Code Snippet
DCEFeedback.beep(MainActivity.this);
// For example, if `beep` is called in the TextResultCallback of DBR, the device will trigger a beep each time when barcode result is detected.
mReader.setTextResultListener(new TextResultListener() {
@Override
public void textResultCallback(int id, ImageData imageData, TextResult[] textResults) {
...
DCEFeedback.beep(MainActivity.this);
}
});