java.lang.Object | ||
↳ | com.datalogic.device.configuration.PropertyGroup | |
↳ | com.datalogic.decode.configuration.GoodRead |
The GoodRead
class configures various types of notifications that are triggered
upon a successful read. It includes options for enabling or disabling different notification methods,
such as LED indicators, vibration, and an overlay on the screen.
The class provides properties for customizing each type of notification, allowing developers to fine-tune the user experience based on their specific requirements.
The GoodRead
class also includes an advanced notification mechanism called the "Good Read Overlay".
This overlay appears on the screen upon a successful read and can be customized in terms of color, shape, size,
and position. The overlay is adaptable to both portrait and landscape modes, allowing for flexible configuration
based on the device's orientation.
The portrait and landscape properties are not mutually exclusive; both sets of properties
should be configured. Depending on the device's orientation, the appropriate properties will be applied
(portrait settings for portrait mode and landscape settings for landscape mode).
The class GoodReadOverlayManager
provides methods to manage custom images to be used as
overlay.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
goodReadEnable | goodReadEnable requires the use of the good read
notification on a successful read. |
||||||||||
goodReadLedEnable | goodReadLedEnable requires the use of the led notification
on a successful read. |
||||||||||
goodReadOverlayBlackAsTransparent | goodReadOverlayBlackAsTransparent selects whether the black or white color in the overlay
should be treated as transparent. |
||||||||||
goodReadOverlayColor | goodReadOverlayColor selects which color to use on the overlay as notification
on a successful read. |
||||||||||
goodReadOverlayCustomShapeNameProfile | goodReadOverlayCustomShapeNameProfile selects which custom shape to use on the
overlay as notification on a successful read. |
||||||||||
goodReadOverlayEnable | goodReadOverlayEnable requires the use of an overlay as notification
on a successful read. |
||||||||||
goodReadOverlayLandscapeCustomPositionX | goodReadOverlayLandscapeCustomPositionX selects which custom position for the
starting X coordinate (starting from the left) to use for the overlay in landscape mode. |
||||||||||
goodReadOverlayLandscapeCustomPositionY | goodReadOverlayLandscapeCustomPositionY selects which custom position for the
starting Y coordinate (starting from the top) to use for the overlay in landscape mode. |
||||||||||
goodReadOverlayLandscapeCustomSizeMaxHeight | goodReadOverlayLandscapeCustomSizeMaxHeight selects which custom height for the
overlay to use in landscape mode. |
||||||||||
goodReadOverlayLandscapeCustomSizeMaxWidth | goodReadOverlayLandscapeCustomSizeMaxWidth selects which custom width for the
overlay to use in landscape mode. |
||||||||||
goodReadOverlayLandscapeDisplayPolicy | goodReadOverlayLandscapeDisplayPolicy selects which node to use for the
overlay in landscape mode. |
||||||||||
goodReadOverlayLandscapePositionPolicy | goodReadOverlayLandscapePositionPolicy selects which position to use for the
overlay in landscape mode. |
||||||||||
goodReadOverlayPortraitCustomPositionX | goodReadOverlayPortraitCustomPositionX selects which custom position for the
starting X coordinate (starting from the left) to use for the overlay in portrait mode. |
||||||||||
goodReadOverlayPortraitCustomPositionY | goodReadOverlayPortraitCustomPositionY selects which custom position for the
starting Y coordinate (starting from the top) to use for the overlay in portrait mode. |
||||||||||
goodReadOverlayPortraitCustomSizeMaxHeight | goodReadOverlayPortraitCustomSizeMaxHeight defines the max custom height for the
overlay to use in portrait mode. |
||||||||||
goodReadOverlayPortraitCustomSizeMaxWidth | goodReadOverlayPortraitCustomSizeMaxWidth defines the max custom width for the
overlay to use in portrait mode. |
||||||||||
goodReadOverlayPortraitDisplayPolicy | goodReadOverlayPortraitDisplayPolicy selects how to display the
overlay in portrait mode. |
||||||||||
goodReadOverlayPortraitPositionPolicy | goodReadOverlayPortraitPositionPolicy selects which position to use for the
overlay in portrait mode. |
||||||||||
goodReadOverlayPreserveColors | goodReadOverlayPreserveColors selects whether the original colors of the overlay
should be preserved. |
||||||||||
goodReadOverlayShapePolicy | goodReaderOverlayShapePolicy selects which shape to use on the overlay as notification
on a successful read. |
||||||||||
goodReadOverlayTransparency | goodReadOverlayTransparency selects the level of transparency to be applied
to the overlay. |
||||||||||
goodReadVibrateEnable | goodReadVibrateEnable requires the use of the vibrator
notification on a successful read. |
||||||||||
greenSpotEnable | greenSpotEnable requires the use of the green spot
notification on a successful read. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This is the constructor of GoodRead.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
goodReadEnable
requires the use of the good read
notification on a successful read.
goodReadLedEnable
requires the use of the led notification
on a successful read.
goodReadOverlayBlackAsTransparent
selects whether the black or white color in the overlay
should be treated as transparent. When set to false
, the white areas in the overlay will be considered transparent;
when set to true
, the black areas will be treated as transparent. In both cases, all other colors are converted to grayscale,
and their transparency is interpolated between the two extremes.
goodReadOverlayColor
selects which color to use on the overlay as notification
on a successful read. The color is used when the field goodReadOverlayShapePolicy
is set to FULL_SCREEN
or, when the field goodReadOverlayPreserveColors
is set to false
.
This property uses an ARGB format (32bit 8bpc), alpha channel is not used, the transparency is set by the goodReadOverlayTransparency
field.
goodReadOverlayCustomShapeNameProfile
selects which custom shape to use on the
overlay as notification on a successful read.
goodReadOverlayEnable
requires the use of an overlay as notification
on a successful read.
goodReadOverlayLandscapeCustomPositionX
selects which custom position for the
starting X coordinate (starting from the left) to use for the overlay in landscape mode.
goodReadOverlayLandscapeCustomPositionY
selects which custom position for the
starting Y coordinate (starting from the top) to use for the overlay in landscape mode.
goodReadOverlayLandscapeCustomSizeMaxHeight
selects which custom height for the
overlay to use in landscape mode.
goodReadOverlayLandscapeCustomSizeMaxWidth
selects which custom width for the
overlay to use in landscape mode.
goodReadOverlayLandscapeDisplayPolicy
selects which node to use for the
overlay in landscape mode.
goodReadOverlayLandscapePositionPolicy
selects which position to use for the
overlay in landscape mode.
goodReadOverlayPortraitCustomPositionX
selects which custom position for the
starting X coordinate (starting from the left) to use for the overlay in portrait mode.
goodReadOverlayPortraitCustomPositionY
selects which custom position for the
starting Y coordinate (starting from the top) to use for the overlay in portrait mode.
goodReadOverlayPortraitCustomSizeMaxHeight
defines the max custom height for the
overlay to use in portrait mode.
goodReadOverlayPortraitCustomSizeMaxWidth
defines the max custom width for the
overlay to use in portrait mode.
goodReadOverlayPortraitDisplayPolicy
selects how to display the
overlay in portrait mode.
goodReadOverlayPortraitPositionPolicy
selects which position to use for the
overlay in portrait mode.
goodReadOverlayPreserveColors
selects whether the original colors of the overlay
should be preserved. When set to true
, the colors specified in the overlay will
not be altered during rendering, otherwise effects or modifications may be applied to the colors
for a different display appearance.
goodReaderOverlayShapePolicy
selects which shape to use on the overlay as notification
on a successful read.
goodReadOverlayTransparency
selects the level of transparency to be applied
to the overlay. The value is specified as a numeric property, typically ranging from 0 (fully
opaque) to 100 (fully transparent). Values between 0 and 100 define varying degrees of transparency.
goodReadVibrateEnable
requires the use of the vibrator
notification on a successful read.
greenSpotEnable
requires the use of the green spot
notification on a successful read.
This is the constructor of GoodRead. All options are initialized by editor.
editor | A PropertyGetter used to load the current barcode family.
|
---|