Barcode Pick View

Defined in framework ScanditBarcodeCapture

BarcodePickViewUIDelegate
protocol BarcodePickViewUIDelegate : NSObjectProtocol

Added in version 6.20.0

barcodePickViewDidTapFinishButton
optional func barcodePickViewDidTapFinishButton(_ view: BarcodePickView) -> Void

Added 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
convenience init(frame: CGRect, context: DataCaptureContext, barcodePick: BarcodePick, settings viewSettings: BarcodePickViewSettings)

Added in version 6.19.0

Initializes a BarcodePickView

init
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() -> Void

Added 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() -> Void

Added in version 6.19.0

Pauses the camera and the scanning process. It can be started again using start().

freeze
open func freeze() -> Void

Added 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() -> Void

Added in version 7.0.0

Reset the picking flow. This will clear all picked items and restore the initial state.

addActionListener
open func addActionListener(_ listener: any BarcodePickActionListener) -> Void

Added in version 6.19.0

Add a BarcodePickActionListener to the mode. User actions will be notified to the listener.

stop
open func stop() -> Void

Added 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) -> Void

Added in version 6.19.0

Removes a BarcodePickActionListener.

uiDelegate
open weak var uiDelegate: BarcodePickViewUIDelegate? { get, set }

Added in version 6.20.0

Sets the listener which is called whenever the finish button is tapped from the view.

addListener
open func addListener(_ listener: any BarcodePickViewListener) -> Void

Added in version 6.20.0

Add a BarcodePickViewListener to the mode. User actions will be notified to the listener.

removeListener
open func removeListener(_ listener: any BarcodePickViewListener) -> Void

Added in version 6.20.0

Removes a BarcodePickViewListener.