Barcode Selection Tap Selection

Defined in framework ScanditBarcodeCapture

Note

Using this class requires the MatrixScan add-on.

enum BarcodeSelectionFreezeBehavior

Added in version 6.6.0

Enum used to specify how freezing of the frame preview should be handled. Freezing the preview helps the user select multiple codes which might be difficult to do on a live preview where the codes constantly move around a bit.

manual

Added in version 6.6.0

The frame preview can only be frozen manually by double tapping anywhere on the screen.

manualAndAutomatic

Added in version 6.6.0

The frame preview is automatically frozen when all barcodes in view are recognized. It can also be frozen manually by double tapping anywhere on the screen.

Note

This setting is still in beta and may not yet work reliably in all situations.

jsonString
open var jsonString: String { get }

Added in version 6.10.0

Serialize the barcode selection freeze behavior in a JSON string.

enum BarcodeSelectionTapBehavior

Added in version 6.6.0

Enum used to specify what happens when the user taps a barcode.

toggleSelection

Added in version 6.6.0

Tapping an unselected barcode selects it. Tapping an already selected barcode will unselect it.

repeatSelection

Added in version 6.6.0

Tapping an unselected barcode selects it. Tapping on an already selected barcode will increment the count returned by BarcodeSelectionSession.count().

jsonString
open var jsonString: String { get }

Added in version 6.10.0

Serialize the barcode selection tap behavior in a JSON string.

BarcodeSelectionTapSelection
open class BarcodeSelectionTapSelection : NSObject, BarcodeSelectionType

Added in version 6.6.0

Tap based selection, customizable via freezeBehavior and tapBehavior.

init
init()

Added in version 6.6.0

Creates a new BarcodeSelectionTapSelection instance.

init
init(freezeBehavior: BarcodeSelectionFreezeBehavior, tapBehavior: BarcodeSelectionTapBehavior)

Added in version 6.13.0

Creates a new BarcodeSelectionTapSelection instance with the specified BarcodeSelectionFreezeBehavior and BarcodeSelectionTapBehavior.

freezeBehavior
open var freezeBehavior: BarcodeSelectionFreezeBehavior { get, set }

Added in version 6.6.0

Freeze behavior to use, defaults to BarcodeSelectionFreezeBehavior.manual

tapBehavior
open var tapBehavior: BarcodeSelectionTapBehavior { get, set }

Added in version 6.6.0

shouldFreezeOnDoubleTap
open var shouldFreezeOnDoubleTap: Bool { get, set }

Added in version 6.12.0

Set should freeze on double tap, defaults to true.

jsonString
open var jsonString: String { get }

Added in version 6.10.0

Returns the JSON representation.