Barcode Find View Settings
Defined in package com.scandit.datacapture.barcode.find.ui
- BarcodeFindViewSettings
class BarcodeFindViewSettingsAdded in version 6.18.0
- BarcodeFindViewSettings()
BarcodeFindViewSettings(
intinListItemColor,intnotInListItemColor,intprogressBarStartColor,intprogressBarFinishColor,booleansoundEnabled,booleanhapticEnabled,booleanhardwareTriggerEnabled, @NonNull Integer hardwareTriggerKeyCode)Added in version 7.4.0
Constructs a new BarcodeFind view settings to use when creating an instance of the BarcodeFindView.
- BarcodeFindViewSettings()
BarcodeFindViewSettings(
intinListItemColor,intnotInListItemColor,intprogressBarStartColor,intprogressBarFinishColor,booleansoundEnabled,booleanhapticEnabled)Added in version 7.4.0
Constructs a new BarcodeFind view settings to use when creating an instance of the BarcodeFindView.
- BarcodeFindViewSettings()
BarcodeFindViewSettings(
intinListItemColor,intnotInListItemColor,booleansoundEnabled,booleanhapticEnabled,booleanhardwareTriggerEnabled, @NonNull Integer hardwareTriggerKeyCode)Added in version 6.23.0
Constructs a new BarcodeFind view settings to use when creating an instance of the BarcodeFindView.
- BarcodeFindViewSettings()
BarcodeFindViewSettings(
intinListItemColor,intnotInListItemColor,booleansoundEnabled,booleanhapticEnabled)Added in version 6.18.0
Constructs a new BarcodeFind view settings to use when creating an instance of the BarcodeFindView.
- inListItemColor
intgetInListItemColor()Added in version 6.18.0
The color for the overlay of an item that is in the list of items to find.
Default is #2EC1CE.
- notInListItemColor
intgetNotInListItemColor()Added in version 6.18.0
The color for the overlay of an item that is not in the list of items to find.
Default is #FFFFFF.
- progressBarStartColor
intgetProgressBarStartColor()Added in version 7.4.0
The color used at the start of the progress bar. The progress bar will diplay a gradient from progressBarStartColor to progressBarFinishColor.
Default is #2EC1CE.
- progressBarFinishColor
intgetProgressBarFinishColor()Added in version 7.4.0
The color used at the end of the progress bar. The progress bar will diplay a gradient from progressBarStartColor to progressBarFinishColor.
Default is #97e0e6.
- soundEnabled
booleangetSoundEnabled()Added in version 6.18.0
Indicates whether audio feedback should be enabled.
Default is true.
- hapticEnabled
booleangetHapticEnabled()Added in version 6.18.0
Indicates whether haptic feedback should be enabled.
Default is true.
- hardwareTriggerEnabled
booleangetHardwareTriggerEnabled()Added in version 6.23.0
Sets whether the BarcodeFindView should react to clicks on the hardware button specified in hardwareTriggerKeyCode. Disabled by default.
Note
This feature is only available on devices with api >= 28. Whether a device supports this can be checked at runtime with the BarcodeFindView.hardwareTriggerSupported flag.
- hardwareTriggerKeyCode
@Nullable Integer getHardwareTriggerKeyCode()
Added in version 6.23.0
The button that acts as a scan trigger. Leave null to use the default button (The default button will be the dedicated HW button on XCover devices, and KeyEvent.KEYCODE_VOLUME_DOWN for other devices). This is only taken into consideration if hardwareTriggerEnabled is true.