Spark Capture Feedback#

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

Note

The Spark Capture API is still in beta and may change in future versions of the Scandit Data Capture SDK.

SparkCaptureFeedback#
class SparkCaptureFeedback

Added in version 6.11.0

Determines what feedback (vibration, sound) should be emitted when scanning barcodes. The feedback is specified for each SparkCapture 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 read successfully, through the success property.

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

defaultFeedback()#
static @NonNull SparkCaptureFeedback defaultFeedback()

Added in version 6.11.0

Returns a spark capture feedback with default configuration:

  • default beep sound is loaded,

  • beeping for the success event is enabled,

  • vibration for the success event is disabled.

SparkCaptureFeedback()#
SparkCaptureFeedback()

Added in version 6.11.0

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

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

Added in version 6.11.0

A feedback for a success event.

equals(obj)#
boolean equals(@Nullable Object obj)

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.