Barcode Selection Tap Selection

Defined in package com.scandit.datacapture.barcode.selection

Note

Using this class requires the MatrixScan add-on.

BarcodeSelectionFreezeBehavior

Added in version 6.9.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.9.0

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

MANUAL_AND_AUTOMATIC

Added in version 6.9.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.

BarcodeSelectionTapBehavior

Added in version 6.9.0

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

TOGGLE_SELECTION

Added in version 6.9.0

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

REPEAT_SELECTION

Added in version 6.9.0

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

BarcodeSelectionTapSelection
class BarcodeSelectionTapSelection : BarcodeSelectionType

Added in version 6.9.0

Tap based selection, customizable via freezeBehavior and tapBehavior.

BarcodeSelectionTapSelection()
BarcodeSelectionTapSelection()

Added in version 6.9.0

Creates a new BarcodeSelectionTapSelection instance.

BarcodeSelectionTapSelection()
BarcodeSelectionTapSelection(BarcodeSelectionFreezeBehavior freezeBehavior,
        BarcodeSelectionTapBehavior tapBehavior)

Added in version 6.9.0

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

freezeBehavior
BarcodeSelectionFreezeBehavior getFreezeBehavior()
void setFreezeBehavior(BarcodeSelectionFreezeBehavior value)

Added in version 6.9.0

Freeze behavior to use, defaults to BarcodeSelectionFreezeBehavior.MANUAL

tapBehavior
BarcodeSelectionTapBehavior getTapBehavior()
void setTapBehavior(BarcodeSelectionTapBehavior value)

Added in version 6.9.0

shouldFreezeOnDoubleTap
boolean getShouldFreezeOnDoubleTap()
void setShouldFreezeOnDoubleTap(boolean value)

Added in version 6.12.0

Set should freeze on double tap, defaults to true.

toJson()
@NonNull String toJson()

Added in version 6.10.0

Returns the JSON representation.