Barcode Ar
Defined in framework ScanditBarcodeCapture
- SDCBarcodeAr
@interface SDCBarcodeAr : NSObject
Added in version 7.1.0
Capture mode that implements BarcodeAr.
- + barcodeArWithContext:settings:
+ (
instancetype
)barcodeArWithContext:(nullable SDCDataCaptureContext *)context settings:(nonnull SDCBarcodeArSettings *)settingsAdded in version 7.1.0
Construct a new BarcodeAr instance with the provided settings.
- feedback
@property (nonatomic, strong, nonnull) SDCBarcodeArFeedback *feedback
Added in version 7.1.0
Instance of SDCBarcodeArFeedback that is used by the barcode scanner to notify users about Ar events.
The default instance of the Feedback will have both sound and vibration enabled. A default beep sound will be used for the sound.
- recommendedCameraSettings
@property (class, nonatomic, nonnull, readonly) SDCCameraSettings *recommendedCameraSettings
Added in version 7.1.0
Returns the recommended camera settings for use with barcode ar.
- - applySettings:completionHandler:
- (
void
)applySettings:(nonnull SDCBarcodeArSettings *)settings completionHandler:(nullable void (^)(void
))completionHandlerAdded in version 7.1.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.
- - addListener:
- (
void
)addListener:(nonnull id<SDCBarcodeArListener>)listenerAdded in version 7.1.0
Adds a listener to receive barcode ar events.
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<SDCBarcodeArListener>)listenerAdded in version 7.1.0
Removes a previously added listener from this BarcodeAr instance.
In case the listener is not currently observing this instance, calling this method has no effect.