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 Booleanvisibleprivate PolygonStyledeselectedprivate PolygonStyleselected
-
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 BooleangetVisible()Control the visibility of the overlay polygon. final UnitsetVisible(Boolean visible)Control the visibility of the overlay polygon. final PolygonStylegetDeselected()Appearance of the overlay polygon when a barcode is not selected. final UnitsetDeselected(PolygonStyle deselected)Appearance of the overlay polygon when a barcode is not selected. final PolygonStylegetSelected()Appearance of the overlay polygon after a barcode has been selected. final UnitsetSelected(PolygonStyle selected)Appearance of the overlay polygon after a barcode has been selected. final JSONObjecttoJson(ToJsonConfiguration config)final ArOverlayPolygonConfigurationclone()final static ArOverlayPolygonConfigurationdefault()-
-
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(ToJsonConfiguration config)
-
clone
final ArOverlayPolygonConfiguration clone()
-
default
final static ArOverlayPolygonConfiguration default()
-
-
-
-