Laserline Viewfinder

Defined in framework ScanditDataCaptureCore

SDCLaserlineViewfinderStyle

Added in version 6.8.0

The style of the SDCLaserlineViewfinder.

SDCLaserlineViewfinderStyleLegacy

Added in version 6.8.0

The legacy style from versions before 6.8.

SDCLaserlineViewfinderStyleAnimated

Added in version 6.8.0

New style from version 6.8 onwards with an animation.

SDCLaserlineViewfinder
@interface SDCLaserlineViewfinder : NSObject <SDCViewfinder>

Added in version 6.0.0

A horizontal laser line with a Scandit logo underneath. Toggles color depending on the capture mode enabled property. The laserline is centered on the data capture view’s point of interest.

To use this viewfinder, create a new instance and assign it to the overlay, e.g. the barcode capture overlay via the SDCBarcodeCaptureOverlay.viewfinder property.

+ viewfinderWithStyle:
+ (nonnull instancetype)viewfinderWithStyle:(SDCLaserlineViewfinderStyle)style

Added in version 6.8.0

Returns a new laserline viewfinder in the style provided.

+ viewfinder
+ (nonnull instancetype)viewfinder

Added in version 6.0.0

Constructs a new laserline viewfinder with SDCLaserlineViewfinderStyleLegacy.

Deprecated since version 6.14.0: Use viewfinderWithStyle: instead.

width
@property (nonatomic, assign) SDCFloatWithUnit width

Added in version 6.0.0

The width of the laser line. The laser line is centered on the point of interest of the view. When specifying the width with relative units, the width is measured relative to the view’s width minus the horizontal scan area margins.

enabledColor
@property (nonatomic, strong, nonnull) UIColor *enabledColor

Added in version 6.0.0

The color to be used when recognition is enabled/active.

disabledColor
@property (nonatomic, strong, nonnull) UIColor *disabledColor

Added in version 6.0.0

The color to be used when recognition is disabled/inactive.

style
@property (nonatomic, readonly) SDCLaserlineViewfinderStyle style

Added in version 6.8.0

The style of the viewfinder.

NSStringFromLaserlineViewfinderStyle(style)
NSString *_Nonnull NSStringFromLaserlineViewfinderStyle(SDCLaserlineViewfinderStyle style)

Added in version 6.8.0

Serialize the viewfinder style in a JSON string.

SDCLaserlineViewfinderStyleFromJSONString(JSONString, style)
BOOL SDCLaserlineViewfinderStyleFromJSONString(NSString *_Nonnull JSONString, SDCLaserlineViewfinderStyle *_Nonnull style)

Added in version 6.8.0

Deserialize the viewfinder style from a JSON string.