Barcode Pick
Defined in framework ScanditBarcodeCapture
Note
Barcode Pick is still in beta and may change in future versions of Scandit Data Capture SDK.
- SDCBarcodePickAction
Added in version 6.24.0
An enumeration of possible actions.
- SDCBarcodePickActionNone
Added in version 6.24.0
No action.
- SDCBarcodePickActionPick
Added in version 6.24.0
Pick action.
- SDCBarcodePickActionUnpick
Added in version 6.24.0
Unpick action.
- SDCBarcodePick
@interface SDCBarcodePick : NSObject
Added in version 6.19.0
Capture mode that implements barcode pick.
- + barcodePickWithContext:settings:productProvider:
+ (
instancetype
)barcodePickWithContext:(SDCDataCaptureContext *)context settings:(SDCBarcodePickSettings *)settings productProvider:(id
<SDCBarcodePickProductProvider>)productProviderAdded in version 6.19.0
Construct a new SDCBarcodePick instance:
dataCaptureContext A SDCDataCaptureContext
settings An instance of SDCBarcodePickSettings used to configure the mode.
productProvider The product provider responsible for retrieving and mapping products. Available product provider types: [SDCBarcodePickAsyncMapperProductProvider]
- recommendedCameraSettings
@property (class, nonatomic, nonnull, readonly) SDCCameraSettings *recommendedCameraSettings
Added in version 6.19.0
Returns the recommended camera settings to use with the mode.
- - addScanningListener:
- (
void
)addScanningListener:(nonnull id<SDCBarcodePickScanningListener>)listenerAdded in version 6.21.0
Adds a scanning listener to this SDCBarcodePick instance.
- - removeScanningListener:
- (
void
)removeScanningListener:(nonnull id<SDCBarcodePickScanningListener>)listenerAdded in version 6.21.0
Removes the scanning listener from this SDCBarcodePick instance.
- - addListener:
- (
void
)addListener:(nonnull id<SDCBarcodePickListener>)listenerAdded in version 6.23.0
Adds a listener to this SDCBarcodePick instance.
- - removeListener:
- (
void
)removeListener:(nonnull id<SDCBarcodePickListener>)listenerAdded in version 6.23.0
Removes the listener from this SDCBarcodePick instance.
- - selectItemWithData:completionHandler:
- (
void
)selectItemWithData:(nonnull NSString *)data completionHandler:(nullable void (^)(SDCBarcodePickAction))completionHandlerAdded in version 6.24.0
Selects the item with the given data. This causes SDCBarcodePickActionListener.didPickItemWithData:completionHandler: or SDCBarcodePickActionListener.didUnpickItemWithData:completionHandler: to be invoked, depending on the item’s current state. The completion callback specifies the type of action that will be performed.
- - confirmActionForItemWithData:
- (
void
)confirmActionForItemWithData:(nonnull NSString *)dataAdded in version 6.24.0
Confirms the action for the item with the given data. Same as invoking the SDCBarcodePickActionListener.didPickItemWithData:completionHandler: (if picking) or SDCBarcodePickActionListener.didUnpickItemWithData:completionHandler: (if unpicking) action callbacks passing YES. Useful as an alternative in scenarios where using such callbacks is not practical. No action is performed if the item is not currently selected.
- - cancelActionForItemWithData:
- (
void
)cancelActionForItemWithData:(nonnull NSString *)dataAdded in version 6.24.0
Cancels the action for the item with the given data. Same as invoking the SDCBarcodePickActionListener.didPickItemWithData:completionHandler: (if picking) or SDCBarcodePickActionListener.didUnpickItemWithData:completionHandler: (if unpicking) action callbacks passing NO. Useful as an alternative in scenarios where using such callbacks is not practical. No action is performed if the item is not currently selected.