public class PreviewOption extends Object
CameraMode
but can be overridden.
Multiple options can be OR'd together.Modifier and Type | Field and Description |
---|---|
static int |
ALWAYS_SHOW
Force the preview to be displayed, even if off by default (e.g., when using CameraMode.PASSIVE_AIMER or CameraMode.ACTIVE_AIMER).
|
static int |
DEFAULTS
Use defaults (no overrides).
|
static int |
HARDWARE_TRIGGER
Enables the simulated hardware trigger (the volume down button).
|
static int |
HIGH_FRAME_RATE
Use higher framerate if the device supports it.
|
static int |
HIGH_RESOLUTION
Use higher resolution if the device supports it.
|
static int |
NO_ILLUMINATION_BUTTON
Disable illumination (removes illumination button from preview).
|
static int |
NO_ZOOM_BUTTON
Disable zoom feature (removes zoom button from preview).
|
static int |
PAUSED
When 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 int |
SHOW_CLOSE_BUTTON
Show close button in partial view.
|
Constructor and Description |
---|
PreviewOption() |
public static final int DEFAULTS
public static final int NO_ZOOM_BUTTON
public static final int NO_ILLUMINATION_BUTTON
public static final int HARDWARE_TRIGGER
public static final int PAUSED
public static final int ALWAYS_SHOW
public static final int HIGH_RESOLUTION
public static final int HIGH_FRAME_RATE
public static final int SHOW_CLOSE_BUTTON