SparkScan Feedback Delegate

Defined in library scandit_datacapture_barcode_spark_feedback

SparkScanFeedbackDelegate
abstract class SparkScanFeedbackDelegate

Added in version 6.23.0

Feedback delegate interface for SparkScan. This can be used to customize the emitted feedback for each detected barcode. See SparkScanView.feedbackDelegate.

feedbackForBarcode(barcode)
SparkScanBarcodeFeedback? feedbackForBarcode(
        Barcode barcode)

Added in version 6.23.0

Invoked for each detected barcode. The implementation should return SparkScanBarcodeFeedback.Success, SparkScanBarcodeFeedback.Error, or null. If null is returned, the default brush is used to visualize the barcode and no other feedback (visual, sound, or haptic) is emitted. By default returns SparkScanBarcodeFeedback.Success.

Note that this method is executed on a background thread.

SparkScanFeedbackExtendedDelegate
abstract class SparkScanFeedbackExtendedDelegate

Added in version 8.2.0

Extension of SparkScanFeedbackDelegate that adds support for feedbackForScannedItem(). This interface was introduced to avoid breaking changes for existing implementations. Users should use either SparkScanFeedbackDelegate or SparkScanFeedbackExtendedDelegate, but not both. This interface will be removed in the next major release.

Feedback delegate interface for SparkScan. This can be used to customize the emitted feedback for each detected barcode. See SparkScanView.feedbackDelegate.

feedbackForBarcode(barcode)
SparkScanBarcodeFeedback? feedbackForBarcode(
        Barcode barcode)

Added in version 8.2.0

Invoked for each detected barcode. The implementation should return SparkScanBarcodeFeedback.Success, SparkScanBarcodeFeedback.Error, or null. If null is returned, the default brush is used to visualize the barcode and no other feedback (visual, sound, or haptic) is emitted. By default returns SparkScanBarcodeFeedback.Success.

Note that this method is executed on a background thread.

feedbackForScannedItem(item)
SparkScanBarcodeFeedback? feedbackForScannedItem(
        ScannedItem item)

Added in version 8.2.0

Invoked for each detected scanned item. The implementation should return SparkScanBarcodeFeedback.Success, SparkScanBarcodeFeedback.Error, or null. If null is returned, the default brush is used to visualize the item and no other feedback (visual, sound, or haptic) is emitted. By default returns SparkScanBarcodeFeedback.Success.