Barcode Selection Feedback
Defined in package com.scandit.datacapture.barcode.selection.feedback
- BarcodeSelectionFeedback
class BarcodeSelectionFeedback
Added in version 6.9.0
Determines what feedback (vibration, sound) should be emitted when reading barcodes. The feedback is specified for each BarcodeSelection instance separately and can be changed through the feedback property by either modifying an existing instance of this class, or by assigning a new one.
As of now, this class only allows to configure the feedback that gets emitted when a barcode is selected, through the selection property.
See documentation on the BarcodeSelection.feedback property for usage samples.
- defaultFeedback()
static @NonNull BarcodeSelectionFeedback defaultFeedback()
Added in version 6.9.0
Returns a barcode selection feedback with default configuration:
default click sound
no vibration
- fromJson(json)
static @NonNull BarcodeSelectionFeedback fromJson(@NonNull String json)
Added in version 6.9.0
Constructs a new barcode selection feedback with the provided JSON serialization.
- BarcodeSelectionFeedback()
BarcodeSelectionFeedback()
Added in version 6.9.0
Empty constructor. Constructs a new feedback that will not emit any sound, nor vibration.
- selection
@NonNull Feedback getSelection()
void
setSelection(@NonNull Feedback value)Added in version 6.9.0
A feedback for a selection event.
- toJson()
@NonNull String toJson()
Added in version 6.10.0
Returns the JSON representation of the feedback.
- equals(other)
boolean
equals(@Nullable Object other)Added in version 6.9.0
Indicates whether some other object is equal to this one.
- hashCode()
int
hashCode()Added in version 6.9.0
Returns a hash code value for the object.