to top
Datalogic APIs
public class

ScanningPreview

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

Class Overview

ScanningPreview is the class that allows to configure a preview source to be activated in several different conditions:

  • While decoding.
  • Using an SDK method to start or stop the preview.
  • Using an intent to start or stop the preview.
  • Using the proximity sensor (if available) by specifying the range (in mm) in which the preview will be active.

Summary

Fields
public BooleanProperty activationByDecoding activationByDecoding represents if the preview will be turned on during decoding.
public BooleanProperty activationByIntent activationByIntent represents if the preview will be turned on using the specific intent actions in a broadcast intent (ACTION_START_SCANNING_PREVIEW and ACTION_STOP_SCANNING_PREVIEW).
public BooleanProperty activationByProximity activationByProximity represents if the preview will be turned on using a ToF range.
public NumericProperty activationByProximityHighThreshold activationByProximityHighThreshold represents the high threshold of the ToF range (in mm) when the preview can be turned on by the ToF.
public NumericProperty activationByProximityLowThreshold activationByProximityLowThreshold represents the low threshold of the ToF range (in mm) when the preview can be turned on by the ToF.
public BooleanProperty activationBySdk activationBySdk represents if the preview will be turned on using the specific SDK methods (startScanningPreview() and stopScanningPreview()).
public NumericProperty hideDelay hideDelay represents the amount of time (in ms) the preview will be shown after a barcode has been successfully decoded.
public EnumProperty<ScanningPreviewSource> source source represents the source of the preview (where the frames come from).
Public Constructors
ScanningPreview(PropertyGetter editor)
This is the constructor of ScanningPreview.
[Expand]
Inherited Methods
From class com.datalogic.device.configuration.PropertyGroup
From class java.lang.Object

Fields

public BooleanProperty activationByDecoding

Added in revision 47

activationByDecoding represents if the preview will be turned on during decoding.

public BooleanProperty activationByIntent

Added in revision 47

activationByIntent represents if the preview will be turned on using the specific intent actions in a broadcast intent (ACTION_START_SCANNING_PREVIEW and ACTION_STOP_SCANNING_PREVIEW).

public BooleanProperty activationByProximity

Added in revision 47

activationByProximity represents if the preview will be turned on using a ToF range.

public NumericProperty activationByProximityHighThreshold

Added in revision 47

activationByProximityHighThreshold represents the high threshold of the ToF range (in mm) when the preview can be turned on by the ToF.

public NumericProperty activationByProximityLowThreshold

Added in revision 47

activationByProximityLowThreshold represents the low threshold of the ToF range (in mm) when the preview can be turned on by the ToF.

public BooleanProperty activationBySdk

Added in revision 47

activationBySdk represents if the preview will be turned on using the specific SDK methods (startScanningPreview() and stopScanningPreview()).

public NumericProperty hideDelay

Added in revision 47

hideDelay represents the amount of time (in ms) the preview will be shown after a barcode has been successfully decoded.

public EnumProperty<ScanningPreviewSource> source

Added in revision 47

source represents the source of the preview (where the frames come from).

Public Constructors

public ScanningPreview (PropertyGetter editor)

Added in revision 47

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

Parameters
editor A PropertyGetter used to load the current configuration.