Barcode Find View Settings
Defined in package com.scandit.datacapture.barcode.find.ui
- BarcodeFindViewSettings
class BarcodeFindViewSettings
Added in version 6.18.0
- BarcodeFindViewSettings()
BarcodeFindViewSettings(
int
inListItemColor,int
notInListItemColor,boolean
soundEnabled,boolean
hapticEnabled,boolean
hardwareTriggerEnabled, @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(
int
inListItemColor,int
notInListItemColor,boolean
soundEnabled,boolean
hapticEnabled)Added in version 6.18.0
Constructs a new BarcodeFind view settings to use when creating an instance of the BarcodeFindView.
- inListItemColor
int
getInListItemColor()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
int
getNotInListItemColor()Added in version 6.18.0
The color for the overlay of an item that is not n the list of items to find.
Default is #FFFFFF.
- soundEnabled
boolean
getSoundEnabled()Added in version 6.18.0
Indicates whether audio feedback should be enabled.
Default is true.
- hapticEnabled
boolean
getHapticEnabled()Added in version 6.18.0
Indicates whether haptic feedback should be enabled.
Default is true.
- hardwareTriggerEnabled
boolean
getHardwareTriggerEnabled()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.