Class ArOverlayGeneralConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ArOverlayGeneralConfiguration implements Parcelable
Configuration of the AR overlay displayed on top of barcodes in the camera preview.
-
-
Field Summary
Fields Modifier and Type Field Description private Booleanvisibleprivate BadgeStylecounterBadgeprivate BooleanautomaticSelectionEnabledprivate BarcodeItemInfoPositionbarcodeItemInfoPositionprivate ArOverlayPolygonConfigurationpolygonprivate BarcodeItemConfigurationbarcodeItemConfiguration
-
Constructor Summary
Constructors Constructor Description ArOverlayGeneralConfiguration(Map<String, Object> source)ArOverlayGeneralConfiguration(JSONObject json)ArOverlayGeneralConfiguration(Boolean visible, BadgeStyle counterBadge, Boolean automaticSelectionEnabled, BarcodeItemInfoPosition barcodeItemInfoPosition, ArOverlayPolygonConfiguration polygon, BarcodeItemConfiguration barcodeItemConfiguration)
-
Method Summary
Modifier and Type Method Description final BooleangetVisible()Control the visibility of the user guidance. final UnitsetVisible(Boolean visible)Control the visibility of the user guidance. final BadgeStylegetCounterBadge()Parameters of the counter badge appearance e.g. final UnitsetCounterBadge(BadgeStyle counterBadge)Parameters of the counter badge appearance e.g. final BooleangetAutomaticSelectionEnabled()If enabled, the scanner will always immediately scan a barcode in the viewfinder or the camera view. final UnitsetAutomaticSelectionEnabled(Boolean automaticSelectionEnabled)If enabled, the scanner will always immediately scan a barcode in the viewfinder or the camera view. final BarcodeItemInfoPositiongetBarcodeItemInfoPosition()Where to display the barcode info box in the camera preview. final UnitsetBarcodeItemInfoPosition(BarcodeItemInfoPosition barcodeItemInfoPosition)Where to display the barcode info box in the camera preview. final ArOverlayPolygonConfigurationgetPolygon()Configuration of the overlay polygon displayed on top of a barcode in the camera preview. final UnitsetPolygon(ArOverlayPolygonConfiguration polygon)Configuration of the overlay polygon displayed on top of a barcode in the camera preview. final BarcodeItemConfigurationgetBarcodeItemConfiguration()Configuration of the barcode info box displayed in the camera preview. final UnitsetBarcodeItemConfiguration(BarcodeItemConfiguration barcodeItemConfiguration)Configuration of the barcode info box displayed in the camera preview. final JSONObjecttoJson(ToJsonConfiguration config)final ArOverlayGeneralConfigurationclone()final static ArOverlayGeneralConfigurationdefault()-
-
Constructor Detail
-
ArOverlayGeneralConfiguration
ArOverlayGeneralConfiguration(JSONObject json)
-
ArOverlayGeneralConfiguration
ArOverlayGeneralConfiguration(Boolean visible, BadgeStyle counterBadge, Boolean automaticSelectionEnabled, BarcodeItemInfoPosition barcodeItemInfoPosition, ArOverlayPolygonConfiguration polygon, BarcodeItemConfiguration barcodeItemConfiguration)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Control the visibility of the user guidance.
Default is false
-
setVisible
final Unit setVisible(Boolean visible)
Control the visibility of the user guidance.
Default is false
-
getCounterBadge
final BadgeStyle getCounterBadge()
Parameters of the counter badge appearance e.g. color of background its stroke and text/icon color.
-
setCounterBadge
final Unit setCounterBadge(BadgeStyle counterBadge)
Parameters of the counter badge appearance e.g. color of background its stroke and text/icon color.
-
getAutomaticSelectionEnabled
final Boolean getAutomaticSelectionEnabled()
If enabled, the scanner will always immediately scan a barcode in the viewfinder or the camera view. The overlay will mark the scanned barcodes and stays above them.
Default is false
-
setAutomaticSelectionEnabled
final Unit setAutomaticSelectionEnabled(Boolean automaticSelectionEnabled)
If enabled, the scanner will always immediately scan a barcode in the viewfinder or the camera view. The overlay will mark the scanned barcodes and stays above them.
Default is false
-
getBarcodeItemInfoPosition
final BarcodeItemInfoPosition getBarcodeItemInfoPosition()
Where to display the barcode info box in the camera preview.
Default is BELOW
-
setBarcodeItemInfoPosition
final Unit setBarcodeItemInfoPosition(BarcodeItemInfoPosition barcodeItemInfoPosition)
Where to display the barcode info box in the camera preview.
Default is BELOW
-
getPolygon
final ArOverlayPolygonConfiguration getPolygon()
Configuration of the overlay polygon displayed on top of a barcode in the camera preview.
-
setPolygon
final Unit setPolygon(ArOverlayPolygonConfiguration polygon)
Configuration of the overlay polygon displayed on top of a barcode in the camera preview.
-
getBarcodeItemConfiguration
final BarcodeItemConfiguration getBarcodeItemConfiguration()
Configuration of the barcode info box displayed in the camera preview.
-
setBarcodeItemConfiguration
final Unit setBarcodeItemConfiguration(BarcodeItemConfiguration barcodeItemConfiguration)
Configuration of the barcode info box displayed in the camera preview.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final ArOverlayGeneralConfiguration clone()
-
default
final static ArOverlayGeneralConfiguration default()
-
-
-
-