SparkScan Feedback

Defined in package com.scandit.datacapture.barcode.spark.feedback

SparkScanFeedback
class SparkScanFeedback

Added in version 6.11.0

Deprecated since version 6.23: This class is not used anymore. Use SparkScanBarcodeFeedback and SparkScanView.feedbackDelegate instead.

Determines what feedback (vibration, sound) should be emitted when scanning barcodes.

This class allows to configure the feedback that gets emitted when a barcode is read successfully through the success property and erroneously through the error property.

As of now, this class only allows to configure the feedback that gets emitted when a barcode is read successfully, through the success property.

See documentation on the SparkScan.feedback property for usage samples.

defaultFeedback()
static @NonNull SparkScanFeedback defaultFeedback()

Added in version 6.11.0

Returns a SparkScan feedback with default configuration:

  • default beep sound is loaded,

  • beeping for the success event is enabled,

  • vibration for the success event is disabled.

SparkScanFeedback()
SparkScanFeedback()

Added in version 6.11.0

Empty constructor. Constructs a new feedback that will not emit any sound, nor vibration.

fromJson(json)
static @NonNull SparkScanFeedback fromJson(@NonNull String json)

Added in version 6.16.0

Construct a new SparkScan feedback with the provided JSON serialization. See Serialization for details.

success
@NonNull Feedback getSuccess()
void setSuccess(@NonNull Feedback value)

Added in version 6.11.0

A feedback for a success event.

error
@NonNull Feedback getError()
void setError(@NonNull Feedback value)

Added in version 6.16.0

A feedback for a error event.

toJson()
@NonNull String toJson()

Added in version 6.16.0

Returns the JSON representation of the feedback.

equals(other)
boolean equals(@Nullable Object other)

Added in version 6.11.0

Indicates whether some other object is equal to this one.

hashCode()
int hashCode()

Added in version 6.11.0

Returns a hash code value for the object.