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 BooleanimageVisibleprivate StyledTexttitleSelectedprivate StyledTextsubtitleSelectedprivate StyledTexttitleDeselectedprivate StyledTextsubtitleDeselectedprivate PolygonStylebackgroundSelectedprivate PolygonStylebackgroundDeselected
-
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 BooleangetImageVisible()Control the visibility of the barcode image in the info box. final UnitsetImageVisible(Boolean imageVisible)Control the visibility of the barcode image in the info box. final StyledTextgetTitleSelected()Configuration of the text displaying a barcode's value in the info box when the barcode has been selected. final UnitsetTitleSelected(StyledText titleSelected)Configuration of the text displaying a barcode's value in the info box when the barcode has been selected. final StyledTextgetSubtitleSelected()Configuration of the text displaying a barcode's symbology in the info box when the barcode has been selected. final UnitsetSubtitleSelected(StyledText subtitleSelected)Configuration of the text displaying a barcode's symbology in the info box when the barcode has been selected. final StyledTextgetTitleDeselected()Configuration of the text displaying a barcode's value in the info box when the barcode is yet to be selected. final UnitsetTitleDeselected(StyledText titleDeselected)Configuration of the text displaying a barcode's value in the info box when the barcode is yet to be selected. final StyledTextgetSubtitleDeselected()Configuration of the text displaying a barcode's symbology in the info box when the barcode is yet to be selected. final UnitsetSubtitleDeselected(StyledText subtitleDeselected)Configuration of the text displaying a barcode's symbology in the info box when the barcode is yet to be selected. final PolygonStylegetBackgroundSelected()Appearance of the barcode info box's background when a barcode has been selected. final UnitsetBackgroundSelected(PolygonStyle backgroundSelected)Appearance of the barcode info box's background when a barcode has been selected. final PolygonStylegetBackgroundDeselected()Appearance of the barcode info box's background when a barcode is yet to be selected. final UnitsetBackgroundDeselected(PolygonStyle backgroundDeselected)Appearance of the barcode info box's background when a barcode is yet to be selected. final JSONObjecttoJson(ToJsonConfiguration config)final BarcodeItemConfigurationclone()final static BarcodeItemConfigurationdefault()-
-
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(ToJsonConfiguration config)
-
clone
final BarcodeItemConfiguration clone()
-
default
final static BarcodeItemConfiguration default()
-
-
-
-