Barcode Batch
Defined in framework ScanditBarcodeCapture
- SDCBarcodeBatch
@interface SDCBarcodeBatch : NSObject <SDCDataCaptureMode>
Added in version 6.0.0
Data capture mode that implements MatrixScan (Barcode Batch).
Learn more on how to use Barcode Batch in our Get Started guide.
- + barcodeBatchWithContext:settings:
+ (
instancetype
)barcodeBatchWithContext:(nullable SDCDataCaptureContext *)context settings:(nonnull SDCBarcodeBatchSettings *)settingsAdded in version 7.0.0
Constructs a new Barcode Batch mode with the provided context and settings. When the context is not nil, the capture mode is automatically added to the context.
- + barcodeBatchFromJSONString:context:error:
+ (nullable
instancetype
)barcodeBatchFromJSONString:(nonnull NSString *)JSONString context:(nonnull SDCDataCaptureContext *)context error:(NSError **)errorAdded in version 7.0.0
Constructs a new Barcode Batch mode with the provided JSON serialization. The capture mode is automatically added to the context.
- enabled
@property (nonatomic, assign, getter=isEnabled)
BOOL
enabledAdded in version 7.0.0
Implemented from SDCDataCaptureMode. See SDCDataCaptureMode.enabled.
- - applySettings:completionHandler:
- (
void
)applySettings:(nonnull SDCBarcodeBatchSettings *)settings completionHandler:(nullable void (^)(void
))completionHandlerAdded in version 7.0.0
Asynchronously applies the new settings to the barcode scanner. If the scanner is currently running, the task will complete when the next frame is processed, and will use the new settings for that frame. If the scanner is currently not running, the task will complete as soon as the settings have been stored and won’t wait until the next frame is going to be processed.
Same as applySettings:completionHandler: with the second argument set to nil.
- - addListener:
- (
void
)addListener:(nonnull id<SDCBarcodeBatchListener>)listenerAdded in version 7.0.0
Adds the listener to observe this barcode capture instance.
In case the same listener is already observing this instance, calling this method will not add the listener again. The listener is stored using a weak reference and must thus be retained by the caller for it to not go out of scope.
- - removeListener:
- (
void
)removeListener:(nonnull id<SDCBarcodeBatchListener>)listenerAdded in version 7.0.0
Removes a previously added listener from this Barcode Batch instance.
In case the listener is not currently observing this instance, calling this method has no effect.
- recommendedCameraSettings
@property (class, nonatomic, nonnull, readonly) SDCCameraSettings *recommendedCameraSettings
Added in version 7.0.0
Returns the recommended camera settings for use with Barcode Batch.
- context
@property (nonatomic, nullable, readonly) SDCDataCaptureContext *context
Added in version 7.0.0
Implemented from SDCDataCaptureMode. See SDCDataCaptureMode.context.
- - updateFromJSONString:error:
- (
BOOL
)updateFromJSONString:(nonnull NSString *)JSONString error:(NSError **)errorAdded in version 7.0.0
Updates the mode according to a JSON serialization.
- barcodeBatchLicenseInfo
@property (nonatomic, nullable, readonly) SDCBarcodeBatchLicenseInfo *barcodeBatchLicenseInfo
Added in version 7.0.0
The object containing information about Barcode Batch licensing.
Note
This value is available with a small delay. To make sure it is available, set a SDCDataCaptureContextListener and, as soon as SDCDataCaptureContextListener.context:didAddMode: is called, this license object is available.