Class BarcodeItemConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class BarcodeItemConfiguration implements Parcelable
Configuration of the barcode info box displayed in the camera preview.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
imageVisible
private StyledText
titleSelected
private StyledText
subtitleSelected
private StyledText
titleDeselected
private StyledText
subtitleDeselected
private PolygonStyle
backgroundSelected
private PolygonStyle
backgroundDeselected
-
Constructor Summary
Constructors Constructor Description BarcodeItemConfiguration(Map<String, Object> source)
BarcodeItemConfiguration(JSONObject json)
BarcodeItemConfiguration(Boolean imageVisible, StyledText titleSelected, StyledText subtitleSelected, StyledText titleDeselected, StyledText subtitleDeselected, PolygonStyle backgroundSelected, PolygonStyle backgroundDeselected)
-
Method Summary
Modifier and Type Method Description final Boolean
getImageVisible()
Control the visibility of the barcode image in the info box. final Unit
setImageVisible(Boolean imageVisible)
Control the visibility of the barcode image in the info box. final StyledText
getTitleSelected()
Configuration of the text displaying a barcode's value in the info box when the barcode has been selected. final Unit
setTitleSelected(StyledText titleSelected)
Configuration of the text displaying a barcode's value in the info box when the barcode has been selected. final StyledText
getSubtitleSelected()
Configuration of the text displaying a barcode's symbology in the info box when the barcode has been selected. final Unit
setSubtitleSelected(StyledText subtitleSelected)
Configuration of the text displaying a barcode's symbology in the info box when the barcode has been selected. final StyledText
getTitleDeselected()
Configuration of the text displaying a barcode's value in the info box when the barcode is yet to be selected. final Unit
setTitleDeselected(StyledText titleDeselected)
Configuration of the text displaying a barcode's value in the info box when the barcode is yet to be selected. final StyledText
getSubtitleDeselected()
Configuration of the text displaying a barcode's symbology in the info box when the barcode is yet to be selected. final Unit
setSubtitleDeselected(StyledText subtitleDeselected)
Configuration of the text displaying a barcode's symbology in the info box when the barcode is yet to be selected. final PolygonStyle
getBackgroundSelected()
Appearance of the barcode info box's background when a barcode has been selected. final Unit
setBackgroundSelected(PolygonStyle backgroundSelected)
Appearance of the barcode info box's background when a barcode has been selected. final PolygonStyle
getBackgroundDeselected()
Appearance of the barcode info box's background when a barcode is yet to be selected. final Unit
setBackgroundDeselected(PolygonStyle backgroundDeselected)
Appearance of the barcode info box's background when a barcode is yet to be selected. final JSONObject
toJson()
final static BarcodeItemConfiguration
default()
-
-
Constructor Detail
-
BarcodeItemConfiguration
BarcodeItemConfiguration(JSONObject json)
-
BarcodeItemConfiguration
BarcodeItemConfiguration(Boolean imageVisible, StyledText titleSelected, StyledText subtitleSelected, StyledText titleDeselected, StyledText subtitleDeselected, PolygonStyle backgroundSelected, PolygonStyle backgroundDeselected)
-
-
Method Detail
-
getImageVisible
final Boolean getImageVisible()
Control the visibility of the barcode image in the info box. Default is true
-
setImageVisible
final Unit setImageVisible(Boolean imageVisible)
Control the visibility of the barcode image in the info box. Default is true
-
getTitleSelected
final StyledText getTitleSelected()
Configuration of the text displaying a barcode's value in the info box when the barcode has been selected.
-
setTitleSelected
final Unit setTitleSelected(StyledText titleSelected)
Configuration of the text displaying a barcode's value in the info box when the barcode has been selected.
-
getSubtitleSelected
final StyledText getSubtitleSelected()
Configuration of the text displaying a barcode's symbology in the info box when the barcode has been selected.
-
setSubtitleSelected
final Unit setSubtitleSelected(StyledText subtitleSelected)
Configuration of the text displaying a barcode's symbology in the info box when the barcode has been selected.
-
getTitleDeselected
final StyledText getTitleDeselected()
Configuration of the text displaying a barcode's value in the info box when the barcode is yet to be selected.
-
setTitleDeselected
final Unit setTitleDeselected(StyledText titleDeselected)
Configuration of the text displaying a barcode's value in the info box when the barcode is yet to be selected.
-
getSubtitleDeselected
final StyledText getSubtitleDeselected()
Configuration of the text displaying a barcode's symbology in the info box when the barcode is yet to be selected.
-
setSubtitleDeselected
final Unit setSubtitleDeselected(StyledText subtitleDeselected)
Configuration of the text displaying a barcode's symbology in the info box when the barcode is yet to be selected.
-
getBackgroundSelected
final PolygonStyle getBackgroundSelected()
Appearance of the barcode info box's background when a barcode has been selected.
-
setBackgroundSelected
final Unit setBackgroundSelected(PolygonStyle backgroundSelected)
Appearance of the barcode info box's background when a barcode has been selected.
-
getBackgroundDeselected
final PolygonStyle getBackgroundDeselected()
Appearance of the barcode info box's background when a barcode is yet to be selected.
-
setBackgroundDeselected
final Unit setBackgroundDeselected(PolygonStyle backgroundDeselected)
Appearance of the barcode info box's background when a barcode is yet to be selected.
-
toJson
final JSONObject toJson()
-
default
final static BarcodeItemConfiguration default()
-
-
-
-