Barcode Pick View
Defined in framework ScanditBarcodeCapture
- BarcodePickViewUIDelegate
protocol BarcodePickViewUIDelegate : NSObjectProtocol
Added in version 6.20.0
- barcodePickViewDidTapFinishButton(_:)
optional func barcodePickViewDidTapFinishButton(_ view: BarcodePickView) ->
VoidAdded in version 6.20.0
Callback method that can be used to define an action that should be performed when the finish button is tapped from the view. Called from the main thread.
- BarcodePickView
open class BarcodePickView : UIView
Added in version 6.19.0
BarcodePickView.
- init(frame:context:barcodePick:settings:)
convenience init(frame: CGRect, context: DataCaptureContext, barcodePick: BarcodePick, settings viewSettings: BarcodePickViewSettings)
Added in version 6.19.0
Initializes a BarcodePickView
- init(frame:context:barcodePick:settings:cameraSettings:)
init(frame: CGRect, context: DataCaptureContext, barcodePick: BarcodePick, settings viewSettings: BarcodePickViewSettings, cameraSettings: CameraSettings?)
Added in version 6.19.0
Initializes a BarcodePickView
- start()
open func start() ->
VoidAdded in version 6.19.0
Starts the camera and the scanning process. Can be stopped by calling pause().
For instance, it can be called when the view controller containing the view is presented (i.e., UIViewController’s viewWillAppear).
- pause()
open func pause() ->
VoidAdded in version 6.19.0
Pauses the camera and the scanning process. It can be started again using start().
- freeze()
open func freeze() ->
VoidAdded in version 6.20.0
Freezes the camera and the highlights position to make the selection easier. The scanning can be started again using start().
- reset()
open func reset() ->
VoidAdded in version 7.0.0
Resets the picking flow. This will clear all picked items and restore the initial state.
- addActionListener(_:)
open func addActionListener(_ listener: any BarcodePickActionListener) ->
VoidAdded in version 6.19.0
Adds a BarcodePickActionListener to the mode. User actions will be notified to the listener.
- stop()
open func stop() ->
VoidAdded in version 6.19.0
Stops the camera and the scanning process. After this call the view should not be used anymore.
- removeActionListener(_:)
open func removeActionListener(_ listener: any BarcodePickActionListener) ->
VoidAdded in version 6.19.0
Removes a BarcodePickActionListener.
- uiDelegate
open weak var uiDelegate: BarcodePickViewUIDelegate? { get, set }
Added in version 6.20.0
Sets the delegate which is called whenever the finish button is tapped from the view.
- addListener(_:)
open func addListener(_ listener: any BarcodePickViewListener) ->
VoidAdded in version 6.20.0
Adds a BarcodePickViewListener to the mode. User actions will be notified to the listener.
- removeListener(_:)
open func removeListener(_ listener: any BarcodePickViewListener) ->
VoidAdded in version 6.20.0
Removes a BarcodePickViewListener.