Spark Capture Feedback#

Defined in framework ScanditBarcodeCapture


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

@interface SDCSparkCaptureFeedback : NSObject

Added in version 6.8.0

Determines what feedback (vibration, sound) should be emitted when scanning barcodes. The feedback is specified for each SDCSparkCapture 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 property for usage samples.

@property (class, nonatomic, readonly) SDCSparkCaptureFeedback *defaultFeedback

Added in version 6.8.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 enabled.

+ sparkCaptureFeedbackFromJSONString:error:#
+ (nullable instancetype)sparkCaptureFeedbackFromJSONString:(nonnull NSString *)JSONString
                                                      error:(NSError **)error

Added in version 6.8.0

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

@property (nonatomic, strong, nonnull) SDCFeedback *success

Added in version 6.8.0

A feedback for a success event.

@property (nonatomic, nonnull, readonly) NSString *JSONString

Added in version 6.9.0

Returns the JSON representation of the feedback.