java.lang.Object | ||
↳ | com.datalogic.device.configuration.PropertyGroup | |
↳ | com.datalogic.decode.configuration.CameraWedge |
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.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
backgroundColor | backgroundColor represents the background color of the frames containing a
barcode generated by the camera wedge. |
||||||||||
barcodeColor | barcodeColor represents the barcode color of the frames containing a
barcode generated by the camera wedge. |
||||||||||
barcodeCustomPositionX | In case of custom positioning, barcodeCustomPositionX represents the position of
the barcode generated by the camera wedge on the X coordinate. |
||||||||||
barcodeCustomPositionY | In case of custom positioning, barcodeCustomPositionY represents the position of
the barcode generated by the camera wedge on the Y coordinate. |
||||||||||
barcodeOrientation | barcodeOrientation represents the orientation of the barcode generated by the camera wedge. |
||||||||||
barcodePosition | barcodePosition represents the position of the barcode generated by the camera wedge. |
||||||||||
barcodeSize | barcodeSize represents the size in pixels of the barcode generated by the camera wedge. |
||||||||||
barcodeType | barcodeType represents the symbology of the barcode generated by the camera wedge. |
||||||||||
enable | enable sets the camera wedge mode, allowing the scanner to substitute
the rear camera of the device. |
||||||||||
maxBarcodePersistence | maxBarcodePersistence represents the maximum amount of time (in milliseconds) a generated
barcode is shown in the camera frames. |
||||||||||
minBarcodePersistence | minBarcodePersistence represents the minimum amount of time (in milliseconds) a generated
barcode is shown in the camera frames. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This is the constructor of CameraWedge.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
backgroundColor
represents the background color of the frames containing a
barcode generated by the camera wedge.
barcodeColor
represents the barcode color of the frames containing a
barcode generated by the camera wedge.
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.
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.
barcodeOrientation
represents the orientation of the barcode generated by the camera wedge.
barcodePosition
represents the position of the barcode generated by the camera wedge.
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.
barcodeType
represents the symbology of the barcode generated by the camera wedge.
enable
sets the camera wedge mode, allowing the scanner to substitute
the rear camera of the device.
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.
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.
This is the constructor of CameraWedge. All options are initialized by editor.
editor | A PropertyGetter used to load the current configuration.
|
---|