public class ScannerConfig.ScanParams extends Object
Modifier and Type | Field and Description |
---|---|
ScannerConfig.AudioStreamType |
audioStreamType
The audio stream type refers to type of streaming on which the scan beep should be played.
|
ScannerConfig.CodeIdType |
codeIdType
A Code ID character identifies the code type of a scanned bar code.
|
ScannerConfig.DecodeAudioFeedbackMode |
decodeAudioFeedbackMode
Controls the audio feedback mode.
|
String |
decodeAudioFeedbackUri
Select an audio tone to sound upon a good decode.
|
boolean |
decodeHapticFeedback
Enable the device to vibrate upon a good decode.
|
boolean |
decodeLEDFeedback
Decoding LED Notification.
|
ScannerConfig.DecodeLEDFeedbackMode |
decodeLEDFeedbackMode
Controls the LED feedback mode.
|
int |
decodeLEDTime
Decode LED ON duration upon successful decode in milliseconds.
|
public ScannerConfig.CodeIdType codeIdType
ScannerConfig.CodeIdType
.
Example Usage: scanParams.codeIdType = CODE_ID_TYPE.NONE;
public String decodeAudioFeedbackUri
Note: To achieve no feedback (silent) upon a good decode, specify an empty string as below: scanParams.decodeAudioFeedbackURI = "";Example Usage: scanParams.decodeAudioFeedbackURI = "system/media/audio/notifications/decode-short.wav"; scanParams.decodeAudioFeedbackUri = "sdcard/sample-audio.wav"; scanParams.decodeAudioFeedbackUri = "sdcard/sample-audio.ogg"; scanParams.decodeAudioFeedbackUri = "/sdcard/sample-audio.wav";
public boolean decodeHapticFeedback
Example Usage: scanParams.decodeHapticFeedback = true;
public int decodeLEDTime
Example Usage: scanParams.decodeLEDTime = 75;
public ScannerConfig.AudioStreamType audioStreamType
Example Usage: scanParams.audioStreamType = AudioStreamType.RINGER;
public boolean decodeLEDFeedback
Example Usage: scanParams.decodeLEDFeedback = true;
public ScannerConfig.DecodeLEDFeedbackMode decodeLEDFeedbackMode
Example Usage: scanParams.decodeLEDFeedbackMode = DecodeLEDFeedbackMode.LOCAL;
public ScannerConfig.DecodeAudioFeedbackMode decodeAudioFeedbackMode
Example Usage: scanParams.decodeAudioFeedbackMode = DecodeAudioFeedbackMode.LOCAL;