Class ArOverlayPolygonConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ArOverlayPolygonConfiguration implements Parcelable
Configuration of the overlay polygon displayed on top of a barcode in the camera preview.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
visible
private PolygonStyle
deselected
private PolygonStyle
selected
-
Constructor Summary
Constructors Constructor Description ArOverlayPolygonConfiguration(Map<String, Object> source)
ArOverlayPolygonConfiguration(JSONObject json)
ArOverlayPolygonConfiguration(Boolean visible, PolygonStyle deselected, PolygonStyle selected)
-
Method Summary
Modifier and Type Method Description final Boolean
getVisible()
Control the visibility of the overlay polygon. final Unit
setVisible(Boolean visible)
Control the visibility of the overlay polygon. final PolygonStyle
getDeselected()
Appearance of the overlay polygon when a barcode is not selected. final Unit
setDeselected(PolygonStyle deselected)
Appearance of the overlay polygon when a barcode is not selected. final PolygonStyle
getSelected()
Appearance of the overlay polygon after a barcode has been selected. final Unit
setSelected(PolygonStyle selected)
Appearance of the overlay polygon after a barcode has been selected. final JSONObject
toJson()
final static ArOverlayPolygonConfiguration
default()
-
-
Constructor Detail
-
ArOverlayPolygonConfiguration
ArOverlayPolygonConfiguration(JSONObject json)
-
ArOverlayPolygonConfiguration
ArOverlayPolygonConfiguration(Boolean visible, PolygonStyle deselected, PolygonStyle selected)
-
-
Method Detail
-
getVisible
final Boolean getVisible()
Control the visibility of the overlay polygon. Default is true
-
setVisible
final Unit setVisible(Boolean visible)
Control the visibility of the overlay polygon. Default is true
-
getDeselected
final PolygonStyle getDeselected()
Appearance of the overlay polygon when a barcode is not selected.
-
setDeselected
final Unit setDeselected(PolygonStyle deselected)
Appearance of the overlay polygon when a barcode is not selected.
-
getSelected
final PolygonStyle getSelected()
Appearance of the overlay polygon after a barcode has been selected.
-
setSelected
final Unit setSelected(PolygonStyle selected)
Appearance of the overlay polygon after a barcode has been selected.
-
toJson
final JSONObject toJson()
-
default
final static ArOverlayPolygonConfiguration default()
-
-
-
-