public class ScannerConfig.ScanParams
extends java.lang.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 barcode.
|
ScannerConfig.DecodeAudioFeedbackMode |
decodeAudioFeedbackMode
Controls the audio feedback mode.
|
java.lang.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.
|
boolean |
decodeScreenNotification
Displays a screen overlay as a notification on a successful decode.
|
int |
decodeScreenNotificationTime
Length of time (in milliseconds) to display the screen overlay upon successful decode.
|
int |
decodeScreenTranslucencyLevel
Sets the percentage of translucency of decode screen notification overlay.
|
public ScannerConfig.CodeIdType codeIdType
ScannerConfig.CodeIdType
.
Example Usage: scanParams.codeIdType = CODE_ID_TYPE.NONE;
public java.lang.String decodeAudioFeedbackUri
Notes: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";
- To achieve no feedback (silent) upon a good decode, specify an empty string as below:
scanParams.decodeAudioFeedbackURI = "";- Specifying any custom audio file with the same name as one of the system audio files (/system/media/audio/notifications/) for decodeAudioFeedbackUri in ScannerConfig.ScannerParams will play a system audio file instead of the specified custom audio file. This is working as designed.
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;
public boolean decodeScreenNotification
Example Usage: scanParams.decodeScreenNotification = true;
public int decodeScreenNotificationTime
Example Usage: scanParams.decodeScreenNotificationTime = 1000;
public int decodeScreenTranslucencyLevel
Example Usage: scanParams.decodeScreenTranslucencyLevel = 35;