to top
Datalogic APIs
public class

CameraWedge

extends PropertyGroup
java.lang.Object
   ↳ com.datalogic.device.configuration.PropertyGroup
     ↳ com.datalogic.decode.configuration.CameraWedge

Class Overview

CameraWedge is the class that allows to configure the scanner to act in place of the rear camera of the device. This means that, when the camera wedge is enabled and an app using the rear camera is opened, it will start the scanner instead of using the standard rear camera of the device. With the scanner active, the barcodes that are decoded will be shown back in the preview of the rear camera opened by the application. This allows for an integration of the scanner with application2 that normally take advantage of the rear camera for decoding.

Summary

Fields
public NumericProperty backgroundColor backgroundColor represents the background color of the frames containing a barcode generated by the camera wedge.
public NumericProperty barcodeColor barcodeColor represents the barcode color of the frames containing a barcode generated by the camera wedge.
public NumericProperty barcodeCustomPositionX In case of custom positioning, barcodeCustomPositionX represents the position of the barcode generated by the camera wedge on the X coordinate.
public NumericProperty barcodeCustomPositionY In case of custom positioning, barcodeCustomPositionY represents the position of the barcode generated by the camera wedge on the Y coordinate.
public EnumProperty<CameraWedgeBarcodeOrientation> barcodeOrientation barcodeOrientation represents the orientation of the barcode generated by the camera wedge.
public EnumProperty<CameraWedgeBarcodePosition> barcodePosition barcodePosition represents the position of the barcode generated by the camera wedge.
public NumericProperty barcodeSize barcodeSize represents the size in pixels of the barcode generated by the camera wedge.
public EnumProperty<CameraWedgeBarcodeType> barcodeType barcodeType represents the symbology of the barcode generated by the camera wedge.
public BooleanProperty enable enable sets the camera wedge mode, allowing the scanner to substitute the rear camera of the device.
public NumericProperty maxBarcodePersistence maxBarcodePersistence represents the maximum amount of time (in milliseconds) a generated barcode is shown in the camera frames.
public NumericProperty minBarcodePersistence minBarcodePersistence represents the minimum amount of time (in milliseconds) a generated barcode is shown in the camera frames.
Public Constructors
CameraWedge(PropertyGetter editor)
This is the constructor of CameraWedge.
[Expand]
Inherited Methods
From class com.datalogic.device.configuration.PropertyGroup
From class java.lang.Object

Fields

public NumericProperty backgroundColor

Added in revision 43

backgroundColor represents the background color of the frames containing a barcode generated by the camera wedge.

public NumericProperty barcodeColor

Added in revision 43

barcodeColor represents the barcode color of the frames containing a barcode generated by the camera wedge.

public NumericProperty barcodeCustomPositionX

Added in revision 43

In case of custom positioning, barcodeCustomPositionX represents the position of the barcode generated by the camera wedge on the X coordinate.
NOTE: The camera frame is considered as being rotated clockwise by 90 degrees, which means that the starting coordinate will be on the top right of the screen in portrait orientation. In this configuration, an increase of the X coordinate causes the barcode to move down on the vertical axis of the screen.

public NumericProperty barcodeCustomPositionY

Added in revision 43

In case of custom positioning, barcodeCustomPositionY represents the position of the barcode generated by the camera wedge on the Y coordinate. NOTE: The camera frame is considered as being rotated clockwise by 90 degrees, which means that the starting coordinate will be on the top right of the screen in portrait orientation. In this configuration, an increase of the Y coordinate causes the barcode to move left on the horizontal axis of the screen.

public EnumProperty<CameraWedgeBarcodeOrientation> barcodeOrientation

Added in revision 43

barcodeOrientation represents the orientation of the barcode generated by the camera wedge.

public EnumProperty<CameraWedgeBarcodePosition> barcodePosition

Added in revision 43

barcodePosition represents the position of the barcode generated by the camera wedge.

public NumericProperty barcodeSize

Added in revision 43

barcodeSize represents the size in pixels of the barcode generated by the camera wedge. For barcodes that have different width and height, the size refers to the biggest value between them.

public EnumProperty<CameraWedgeBarcodeType> barcodeType

Added in revision 43

barcodeType represents the symbology of the barcode generated by the camera wedge.

public BooleanProperty enable

Added in revision 43

enable sets the camera wedge mode, allowing the scanner to substitute the rear camera of the device.

public NumericProperty maxBarcodePersistence

Added in revision 43

maxBarcodePersistence represents the maximum amount of time (in milliseconds) a generated barcode is shown in the camera frames. After this time has expired, the camera frames with come back to show only the background.

public NumericProperty minBarcodePersistence

Added in revision 43

minBarcodePersistence represents the minimum amount of time (in milliseconds) a generated barcode is shown in the camera frames. If another barcode is decoded before the time has expired, it will be shown only after the expiration.

Public Constructors

public CameraWedge (PropertyGetter editor)

Added in revision 43

This is the constructor of CameraWedge. All options are initialized by editor.

Parameters
editor A PropertyGetter used to load the current configuration.