Package com.cognex.cmbsdk
Class PreviewOption
java.lang.Object
com.cognex.cmbsdk.PreviewOption
Controls the preview/scanning options when using the Mobile device camera.
Preview defaults are set by the
CameraMode but can be overridden.
Multiple options can be OR'd together.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intForce the preview to be displayed, even if off by default (e.g., when using CameraMode.PASSIVE_AIMER).static final intUse defaults (no overrides).static final intEnables the simulated hardware trigger (the volume down button).static final intUse higher framerate if the device supports it.static final intUse higher resolution if the device supports it.static final intKeep the preview in paused state after readstatic final intDisable illumination (removes illumination button from preview).static final intDisable zoom feature (removes zoom button from preview).static final intWhen scanning starts, the preview is displayed but decoding is paused until a trigger (either the on screen button or the volume down button, if enabled) is pressed.static final intUse 2K resolution if the device supports it.static final intShow close button in partial view. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULTS
public static final int DEFAULTSUse defaults (no overrides).- See Also:
-
NO_ZOOM_BUTTON
public static final int NO_ZOOM_BUTTONDisable zoom feature (removes zoom button from preview).- See Also:
-
NO_ILLUMINATION_BUTTON
public static final int NO_ILLUMINATION_BUTTONDisable illumination (removes illumination button from preview).- See Also:
-
HARDWARE_TRIGGER
public static final int HARDWARE_TRIGGEREnables the simulated hardware trigger (the volume down button).- See Also:
-
PAUSED
public static final int PAUSEDWhen scanning starts, the preview is displayed but decoding is paused until a trigger (either the on screen button or the volume down button, if enabled) is pressed.- See Also:
-
ALWAYS_SHOW
public static final int ALWAYS_SHOWForce the preview to be displayed, even if off by default (e.g., when using CameraMode.PASSIVE_AIMER).- See Also:
-
HIGH_RESOLUTION
public static final int HIGH_RESOLUTIONUse higher resolution if the device supports it. Default is 1280x720, with this param 1920x1080 will be used.- See Also:
-
HIGH_FRAME_RATE
public static final int HIGH_FRAME_RATEUse higher framerate if the device supports it. Default is 30 FPS, with this param 60 FPS will be used.- See Also:
-
SHOW_CLOSE_BUTTON
public static final int SHOW_CLOSE_BUTTONShow close button in partial view.- See Also:
-
KEEP_PREVIEW_IN_PAUSED_STATE
public static final int KEEP_PREVIEW_IN_PAUSED_STATEKeep the preview in paused state after read- See Also:
-
QHD_RESOLUTION
public static final int QHD_RESOLUTIONUse 2K resolution if the device supports it. Default is 1280x720, with this param 2560x1440 will be used.- See Also:
-
-
Constructor Details
-
PreviewOption
public PreviewOption()
-